Greetings IH,
Does anyone know what the underlining technology that Mailgun uses to actually send emails to people? Or for example, how does Mailchimp send emails?
Agreed with the others, setting up an SMTP server should probably be avoided unless you're scaling an email-specific business. One thing you could do if you're building an MVP is use Amazon's SES which is essentially just a thin API on top of an SMTP server, and is much cheaper than the commercial Email Service Providers. https://aws.amazon.com/ses/
With your own email servers, you will spend a lot of time worrying about reliability and deliverability. These two things are the primary value adds that ESPs provide, in addition to better UIs and APIs. In short, deliverability relies on reputation of not only your domain name, but also the physical server from which it was sent. You can read more about that here: https://litmus.com/community/learning/19-deliverability-basics
@justifyles thanks for the in-depth explanation! Yeah I never looked at it that way. Amazon SES pricing is also pretty legit, $0.1/1000 emails sent is great!
E-mails are sent through the SMTP protocol, so you need a SMTP server in order to send emails. The most popular one is Postfix, but there are several others. Mailgun, for example, uses Haraka as their SMTP server, Haraka is built on NodeJS and focus on scalability.
Nice, I might need to check Haraka out since my backend is Nodejs.
As mentioned by others, don't implement your own SMTP unless you have good experience running mail servers. While php's mail() function is easy for example, getting that email past the spam filters and in to the inbox is another story - one best managed by paying a company to deal with those problems for a few pennies per thousand emails.
I've used Mailgun before and it worked great.
Thanks @PatrickS for the tip! Yeah agreed, we're doing the lean way so starting with Amazon SES, then moving into our own SMTP solution in a few years as the business scales and makes sense.
SMTP
https://sendgrid.com/docs/API_Reference/SMTP_API/getting_started_smtp.html
Awesome! I'll check it out :) Pricing looks decent too.