I am experiencing problems trying to send html formatted emails while using phpmailer and the the mimemail modules. Not sure exactly where the problem is so I thought I would start by posting.

While using phpmailer to send emails via smtp using the webform module, I am experiencing an issue. I am trying to set up an automatic response so after someone completes the webform the folloing happens:

1. They are diverted to a success page once the form has been mailed (webform)
2. The respondent is emailed a confirmation email to the address supplied (webform, phpmailer, mimemail)

I have managed to set up phpmailer and mimemail. I have also copied across the files from mimemail module folder to my theme directory and inserted some html with links to images. This is viewable when selecting 'preview example email' link from /admin/settings/mimemail path (admin/settings/phpmailer diverts to here. (Somewhat confusingly, i also have phpmailer selected as the email engine from this same page. What is confusing is that the other option is to use mimemail with the default drupal mail engine. i.e I have selcted to not use mimemail from the phpmailer/mimemail page)
.
So far so good but when I send a form via webform, I only seem to be able to receive it plain text format.

Comments

2dareis2do’s picture

Just to follow this up I have also tried to style the emails sent out by using the webform theming options i.e. by copying webform.mail.tpl.php to my theme folder. This seems to make no difference.

2dareis2do’s picture

Ok,

Turns out there is a setting for webform admin/settings/webform where you can also specify whether or not to send a html email:

Format:
Plain text
HTML
The default format for new e-mail settings. Webform e-mail options take precedence over the settings for system-wide e-mails configured in MIME mail.

Changed this and have started to receive the html email as styled by the webform overide.

Just checked and it seems mimemail module needs to be enabled in order for html emails to be activated. Would certainly be useful to reference this in the respective phpmailer/mimemail documentation.

oadaeh’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

This issue is being closed due to Drupal 6 being at the end of its life. If you feel this is still a valid issue for the Drupal 7 compatible branch of this module, feel free to re-open this issue and provide updated information.