Getting one of my Drupal sites to send HTML email from a Gmail gave me more grief that I'd like to admit. The documentation for this one task seemed so scattered and unclear, it just makes sense to finally have it all in one place. Hopefully I can save a few of you some work.
First, make sure SSL has been enabled in php.ini. You'll probably have to type this line from scratch with the other extensions.
The php.ini file should also have a section that looks like this:
[mail function] ; For Win32 only. ; http://php.net/smtp SMTP = smtp.gmail.com ; http://php.net/smtp-port smtp_port = 465 username <<email@example.com>> password <<password goes here>>
Ok, not quite like that, but if you add your stuff, it will. Next, go to Mime Mail and make sure the following settings have been selected:
- Use mime mail for all messages
- Include site style sheets
Finally, go to Messaging settings and make sure the default send method is MIME Mail. Now, go to the test page and send yourself a message. That should do it!