- First at all, install and activate the 'SMTP Authentication Support' module.
- Go to Configuration -> System -> SMTP Authentication Support
- Turn on the module as above figure.
- Input login information inside the group box of 'SMTP AUTHENTICATION'.
- Check the "Allow to send e-mails formatted as HTML" option on the group box of "E-MAIL OPTIONS".
- Finally, install and activate the "Simple Mail" module. Now, you can send email by the following function simply.