Drupal 7 webform module is not sending email properly I have this modules enabled in my Drupal 7 site:


Mail System v7.x-2.34
Mime Mail v7.x-1.0-alpha2
Smtp Authentication v7.x-1.0
Webform v7.x-3.19 


I have configured Mail system to "format" mails with MIME Mail and "mail" with SMTP Authentication. This configuration is set as site-wide default class.

It works fine for register user email, but when send mail with webforms it doesn't use that configuration (It sends emails with a local smtp).

How can I make webform take mail system configuration?

This is what I did:


Install smtp module and config to send mails with amazon ese service. (Using the test option of this module it was working fine)
Needed to send html mails so I installed "mime mail" and "mail system" modules
After enable both modules I have created a class with "mail system" module in this way:


Create a class with:

format: MimeMailSystem

mail: SmtpMailSystem
After that apply the new class to:

Site-wide default class

Mime mail module class

Tested the result with post register emails (This was working fine, amazon ses with html emails)
Installed "webform" module and create a contact form
Webform is sending mails but is not using my smtp config, it's using my local sendmail server (I realize this when the email was detected as possible phishing and looked at the email header)
This shouldn't be working like this, it should be using the site-wide default class defined in "mail system"
Post register emails are still working
I found the solution for the problem, it's really easy by the way. I hope this is helpfull for somebody else.

What we need is go to:

admin/config/system/mailsystem


Then press "New Setting" link, select "Webform" in the combobox, leave the "key" field empty and save configurations.

Then a new option is enable as shown in the image:



Then we only need to select the right class for Webform module and save.

That's all, i think this should work for other modules too.