Below is a brief explanation of how to use Gmail as an SMTP server to send email. I personally needed to configure Gmail to test Cforms WordPress plugin to make sure there wasn’t a problem with a clients hosting company servers native PHP mail. I used the below steps to create an account, configure the Gmail settings, and then verify the email was sent.
- Create Gmail Account: Got to gmail.com and create a new account.
- Open Cform Settings: Login to your WordPress admin, click on cforms in the left side nav, click on “Global Settings”, and then click on the “SMTP Server Settings” line.
- Enable External SMTP Server: Click the checkbox next to “Enable External SMTP Server”.
- Enter Gmail SMTP Settings: Use smtp.gmail.com as your SMTP server. Make sure to enable SSL on port 465. The username will be the entire email address such as firstname.lastname@example.org and then enter your password.
- Update Settings: Click the “Update Settings” button at the top of the configuration page.
- Test Contact Form: Submit a contact form from your site to see if it provides the “thanks for sending” message.
- Verify Sent Thru Gmail: Now login to your Gmail account and the email should show in your Gmail accounts “Sent Items”.
If the email shows in the sent items folder then that means that it is successfully sending through Gmail however if it does not show there then it has not been sent through gmail properly.