Using external SMTP servers to send email

Learn which hosting packages can use external SMTP servers to send email.

This article discusses using external SMTP servers to send email. Whether or not you can do this depends on which server hosts your account.

📘

Note

To determine which server hosts your account, look at the server name:

  • If the server name for your account includes a2hosting.com (for example, mi3-ss14.a2hosting.com), then your account is on an A2 Hosting server.
  • If the server name for your account does not include a2hosting.com (for example, e4497.usc1.stableserver.net), then your account is not on an A2 Hosting server.

For information about how to determine the server name for your account, please see this article.

Accounts not on A2 Hosting servers

For hosting accounts that are not on an A2 Hosting server, you can use external SMTP servers to send email.

Accounts on A2 Hosting servers

For hosting accounts that are on A2 Hosting servers, you cannot use external SMTP servers to send e-mail messages if you have one of the following hosting packages:

  • Shared web hosting
  • Reseller hosting
  • Managed WordPress hosting

For these hosting packages, you must use the hosting server to send email using SMTP.

Alternatively, you can use an HTTP API to send email. Ask your mail provider if they offer an API to use instead of SMTP. HTTP API mail sending plugins are available for popular CMS from providers such as MailChimp, Sendgrid, and Mailgun. You can also use HTTP APIs in custom programs, as demonstrated in Using the MailChimp API with PHP.