To summarize, Webform users have not been able to send e-mails when using the SMTP module and the FROM e-mail addresses are formatted as "First Last" <email@example.com>. The name is properly mime_header_encoded when necessary.

Any users experiencing this issue, please update with the version of SMTP module you're using.

This is an FYI for all concerned parties. (This message is duplicated on the issues listed below. Read on for the why.)

I don't actually like the way the From e-mail address is handled in the code for the SMTP Authentication Support module. I have plans to change it, but because I think it will be a bit of a paradigm shift to change it so it works better and makes more sense, I was kind of waiting for my last massive changes is settle in a bit to see if they were causing anyone any problems before I potentially created more problems.

I've found that some modules like to use the format Name <mail@mail.com> or "Name" <mail@mail.com>. Both should work, and both are accepted by mail clients, so SMTP Module shouldn't force names to be quoted.

I've had to change the following line in order to allow mails to be sent from the Messaging module$from_name = preg_replace('/"*(.*)"*\<(.*)\>/i', '$1', $from); // It gives: Name

This simply changes the regular expression to ensure that quotes are optional.

Hope this helps.

Btw, it would be very useful if you could enhance this module to work with frameworks such as the Messaging framework that also has a PHPMailer plugin - but alas hasn't implemented authentication.

Thanks for this module - it's great! However, I am having the same problem that everyone else is having with webform module integration. I applied the patch in #13 to no effect. Here's the version that I'm running:

Is it just me? I've updated to the latest version, 6.x-1.0-beta5, but it still is not fixed for me. My webforms have "Site Name" in the "From Name" field and they work fine with regular mail but through SMTP they only show "Site" in the "From" field of the e-mail.

I tried changing out the regex to the patch in #6, and that mostly worked, but like checkmark says in #11, it worked except there was an extra double-quote at the end.

At least for me, the committed changes did nothing for me to resolve this problem. Anyone else been able to fix this? Anyone still having the issue?