My WordPress site needs to send email


WordPress by default will attempt to hand off emails to the server infrastructure for forwarding.  This doesn't work well with modern email security because you can't authenticate who the email is coming from, so even if the servers will send it, it often doesn't deliver, or goes to spam.  Note: there are some Gravity Forms-specific plugins that use Third-Party mass email platforms (MailJet, MailChimp, SendGrid, etc) that perform the same function, so if you are using one of those.

Prerequisites:

Now that you have the Generic Account and app password you can move on to installing/activating the plugin and configuring it:

  1. Install and Activate the "Post SMTP" plugin. In Web Publishing, this plugin is already installed, but not activated by default. It may need to be installed if the WordPress site is hosted in cPanel.
  2. You will now see a new "Post SMTP" menu item in the WordPress dashboard. Click the "Post SMTP" heading.
  3. Click "Show All Settings" under the blue button.
  4. Change "Type" to "Other SMTP".
  5. Change "Mailer Type" to "PostSMTP".
  6. Change "Outgoing Mail Server Hostname" to "smtp.gmail.com".
  7. Change "Outgoing Mail Server Port" to 587.
  8. Change "Envelope-From Email Address" to your Generic Account (with the @ncsu.edu part).
  9. Change "Security" to "STARTTLS".
  10. Change "Authentication" to "Plain."
  11. Change "Username" to your Generic Account (with the @ncsu.edu part).
  12. Change "Password" to the app password for your Generic Account. Do not use the login password.
  13. Under the "Message" tab at the top, change "From" address to your Generic Account's email (with the @ncsu.edu part).
  14. Change the "Name" to the name you'd like folks to see (such as OneCard Office).

From this point on, all emails that WordPress will attempt to send will originate from your Generic account, including being in the "Sent" mail within that account.  This includes new account signups, admin notices, or form submission notifications.  Note that other plugins (like Gravity Forms) that attempt to override the "From" address will not be able to do so.

Please also keep in mind that your generic account - no matter how it is sending email - is subject to Google’s sending limits. Your account may be limited if you approach 2,000 emails per day, regardless of whether those are being sent via WordPress, the Gmail website, or any other means.