By sharkmeat on
I have been searching for two days now and tried many different ways to try to customize the notification emails sent out to users from the core contact.module
I've tried using html in the "auto-reply" form found at /admin/build/contact/edit/ - but tags get arbitrarily inserted when the auto-reply is sent from Drupal so it breaks any html code put in the form.
I've tried the htmlmail module, the mail api module, among other things but nothing seems to work.
Mostly I'd like to include a logo in these outgoing notifications and format the test so it look nice. Is this just not possible?
Any ideas or suggestion would be very welcomed.
Many thanks
Comments
you'll need mimemail for html
check out: http://drupal.org/project/mimemail
as for text in notifications, the one i'm familiar with is in admin/site configuration - same place where you change mission statement and that stuff, scroll down and you'll see options to change all of the text that goes out with registration related emails (pw reminder, etc)
Already have mimemail Installed...
Unfortunately I already have mimemail as an installed module and still having the same problem.
The email notification is generated by the core contact module when a user enters information into the site-wide contact form. An auto-reply email is generated and sent to the user - THIS is the notification I am trying to format so that it look nice and not some plain text email.
For example if I put the following in the auto-reply field on by going to www.example.com/admin/build/contact and then selecting the category to edit.
I do not get a nice html email sent to the user - I get this
If you look at the source code in the email you will see this:
You can see that random
<br />tags have been placed into the email rendering the html output useless.Any ideas suggestions?
As i mentioned I have the following helper modules installed:
http://drupal.org/project/htmlmail
http://drupal.org/project/mail_api
http://drupal.org/project/mimemail
Thank you.
sorry, i'm at a loss
i don't use html in emails, nor manage this kind of issue - just the simple contact form in core...but this must have been resolved before, certainly worth digging around in forums (i use google for this btw, searching drupal is too slow for me, so try site:drupal.org and whatever you're trying to dig up...)
perhaps it has something to do with the html_to_text function discussed here? http://drupal.org/node/154218
Wow, this is an old
Wow, this is an old post.
Please someone tell me I am stupid, however I can't find this equivalent email config in D7 www.example.com/admin/build/contact
I desperately need to change the contact.module text that accompanies an email sent to a user via their contact form.
Anyone? After so much work
Anyone?
After so much work this is an absolute show stopper for my Drupal site. I'd rather not simply edit the text from the Contact.module, and do not know how to use hooks.
You've probably done all this
You've probably done all this already but I'll post it anyway.
Configuration - > Account Settings --- Changes Automatic email responses.
Use Actions and triggers for creating your own based on custom conditions. Use rules for everything else.
Hope this helps.
Thanks Jedd, however
Thanks Jedd, however unfortunately Configuration - > Account Settings does not allow me to edit the Drupal text that accompanies an email from a user's contact form.
I assume Actions and Rules are modules? I'll look into them
Getting desperate. Is there
Getting desperate. Is there ANY simple way for me to edit the text which Drupal inserts on emails ti my website members?
So are you talking about the
So are you talking about the emails sent from the contact form? You can edit the text here
http://www.example.com/admin/structure/contact
For an example:
http://www.example.com/admin/structure/contact/edit/2
Can you provide an example of where the email is sent from i.e. www.example.com/contact
What you are asking for sounds pretty simple. It obviously isn't. Just needing further information so I can understand your problem better.
Hi Jedd, thanks for your
Hi Jedd, thanks for your reply.
The emails in question are those sent by the personal contact form www.example.com/user/%uid/contact
And they are not customizable via www.example.com/admin/structure/contact
Looks like you might have to
Looks like you might have to create your own custom module to do what you need...
You could do it the rough way and modify the contact.module but I highly recommend against it.
Looks like the works already
Looks like the works already been done! See:
https://drupal.org/node/1212144#comment-4710770