Why Use an SMTP Provider

Something that hasnt been much of an issue in the past is email delivery, but as the amount of spam email rises providers are increasing the scrutiny of of what emails they are willing to accept.

The main reason is the ease of which a programmer can send infinite email with little to no effort. Look here it is using PHP…..

<?php 
for ($x = 0; $x <= 10; $x++) {
   $to = "person@example.com";
   $subject = "EMail Subject Line";
   $body = "Hi person. Im spamming you!";
   $header = "From: spammer@anotherexample.com";
   mail($to,$subject,$txt,$headers);
}
?>

You dont even need a mail server. So email providers have now started using spam filters that now gauge the likelihood of the source of the email being first authentic and second not being malicious. It has gotten to the point that some providers like gmail and yahoo are requiring that the email come from a SMTP provider.

These providers maintain their ability to land emails in users inbox’s by ensuring that users of their services or sending authentic emails that at some point were solicited. By cracking down on malicious users the email providers are much less likely to block, delete, or junk mail the users email.

This becomes particularly useful for developers, but its also becoming more important with people running web based applications like WordPress or Joomla. What inspired me to write about this topic was the fact that I had a client trying to use the Forgotten Password feature on their site and they were never getting their email. The reason is since the source is a random server on the Internet it appears suspicious and is blocked.

So the solution to this is to use a SMTP provider. So personally I like to use MailGun. They allow up to 10,000 emails per month free. Then an additional penny per twenty emails. This is great particularly for people that don’t really do any email marketing. 

After you create an account youll be dropped in the domains section of the site. Go ahead and add your domain. Now for the difficult part. In order to give MailGun your authority as a domain owner to send email on your behalf, you need to set up an SPF record in your DNS provider. Then to ensure the authenticity they ask you to add their DKIM record as well. They make it very easy by listing out exactly what you need to add.

Now typically you use your email with a domain host, so setting the MX record might not be entirely feasible. Its fine you really dont need it to send emails with the provider. Finally at the bottom there is one CNAME record that if you add will allow metrics for who clicks on links in the emails, which ones have been opened, and which ones were even delivered.

Once you click next at the bottom it will take you to a screen with all your authentication credentials.

Open a new tab and log into your WordPress and get the Mailgun plugin.

 

 

 

 

 

 

 

 

 

Finally, put in your credentials into the plugin and thats it. Your WordPress will begin using the SMTP server to send all emails.

Leave a Reply

Your email address will not be published. Required fields are marked *