Is there any way to use smtp with mimemail? I see in the code something about a provision for alternate mail engines, but can't figure out what it would take to use the smtp module as the engine, or if there is any other way to set this up for authenticated smtp.

Comments

allie micka’s picture

Status: Active » Closed (works as designed)

Have a look at the mimemail_mailengine() in mimemail.module. You will want to copy this function into the smtp module ( smtp_mailengine() ? ). In particular, you want to edit the cases for 'single' and 'multiple' so that they use smtp's connection code instead of mail().

You should be able to establish settings for the smtp server, credentials, etc. by using the 'settings' op. I have verified that you can use alternate backends, but this has not been fully-tested. Please file issues if you find them!