Emails are very important as they allow you to send information easily between users. It is especially important when you need to send emails from your website to yourself. For example in a contact form where users would like to contact the website owner, by submitting the information on the website and the website owner would receive this information in a email. It can be used for other purposes as well when you may have forgotten your email address and you need to send a password reset link from the website to your own email address.
Most mail servers are working locally on the same server where the website is hosted on. Whilst this is possible, it can cause a number of issues if something was to go wrong. If this single server was to have an issue, it would render both the website and the email services offline.
In such circumstances you would like to prevent the issue in the first place, but sometimes things happen and to minimise the impact, it is normally recommended to isolate the website and the mail server. Through this method when a issue arises, it would only affect one or the other and not both.
We will look to implement a SMTP server on a website where by a single server works as the web server to show web content and another email service on a different server to work as a mail server for emailing purposes. We will be using the SMTP to connect to the email server so that we can send our emails with another server. The environment will be a WordPress based website and we will be taking advantage of a plugin called “Easy WP SMTP” as the connection, the email services will be handled by a hosting provider.
We will install the above plugin to our WordPress website so it would act as an connecting to our email services at our hosting provider.
The plugin is quiet easy to use, for our hosting provider, we have submitted the following information:
Through the use of these settings we can now use the emails from the hosting provider rather than the ones on the same server. This allows us to isolate the web server and the mail server independently and also to ensure the web server IP doesn’t get blacklisted and to ensure our mail server’s email will be received by the inbox rather than the SPAM folder.