I’m building an app where the user creates an email and where the email is sent from his mail server. I’m not looking to receive any emails, just to send them. I need to access his mail server to do this and I’m wondering a) what kind of email servers are there (Exchange, SMTP, POP3…) and what kind of info does the user need to provide me (ie. what fields do I need in the DB).
If you know of any pitfalls to avoid, please let me know.
Thanks for your suggestions.
SMTP and POP3 are protocols, not Email Servers.
If I understand correctly, you need to connect to different email servers based upon the client that’s constructing the email to send the email through his/her mail server(?)
If that’s so, you need to, for every client of yours, find out their mail server’s IP address and the type of authentication, encryption, etc. that they support. Once you have that established, you need to connect to each server based with the specific credentials provided by your client and send the email through their SMTP server. Example:
Above example was taken almost verbatim, from here.