<
Neerav Mehta
Founder & CEO
Download and enable HTML Mail, SMTP Authentication Support and Mail System modules.
Go to "Configuration" -> "Mail System". Expand the New Class fieldgroup. Select "HTMLMailSystem" in the format() method dropdown and "SmtpMailSystem" in the mail() method dropdown. Save the form.
Saving the previous form should save HTMLMailSystem_SmtpMailSystem.mail.inc in sites/default/files/mailsystem folder. If there is an error, make sure that the files folder is writable by the web server.
Go to "Configuration" -> "SMTP Authentication Support". Enter SMTP server information. Note that Google uses port number 465 with SSL. Also enter Authentication information, if any. Click the checkbox to allow HTML in the email. Enter Test Email and save the form.
Check your test email. You should have got the following email - Congratulations!! Your SMTP configuration is working.
Go to "Configuration" -> "HTML Mail" -> "Send Test". Enter some HTML in the email body. Change Test mail sending class to HTMLMailSystem_SmtpMailSystem and save the form.
Check your test email. You should have got the email in HTML format. If yes, then you have successfully configured your Drupal instance to send HTML mails using SMTP.
Neerav Mehta
Neerav Mehta is the Founder & CEO of Red Crackle. With sterling qualities, Neerav’s technological acumen is firing a generation of progressive companies on the digital path. With an undergraduate degree in Electrical Engineering from India's most prestigious institution IIT Bombay and having spent seven years developing and contributing to the launch of AMD's innovative line of computer products, Neerav founded Red Crackle where he is lauded for his dynamic and innovative genius.
Let’s get you started!