tehaaron
tehaaron

Reputation: 2250

What does it take for an application to send out an email?

I am attempting to make a very small web app (in javascript/jquery with possible db backend using sql to call through js). Part of this is a form where a recipient's email is entered and the form will email them from my app's address.

What do I need to know to get something like this set up? How do I configure a form to specify that the sender is the App and what address to use ect? Should I use a MailChimp API (if they have one) or something else entirely?

Thanks

Upvotes: 0

Views: 68

Answers (2)

Jack Marchetti
Jack Marchetti

Reputation: 15754

Do you have access to an SMTP server to route the e-mail through?

If so, you could just setup a server side (php/.net) to handle the form. Use regular expressions to verify the e-mail address is valid, and then route it through the SMTP server.

Upvotes: 1

Simone Gianni
Simone Gianni

Reputation: 11672

You should send the mail from a server side script. PHP, Ruby, Python, Java, all have native support for sendinqg mail, and good libraries to hide hard things and common pitfalls.

You could try to "send a mail" client side, using a mailto: address or some other magic in the form, but it's far from reliable, especially considering that a lot of people use webmail and does not have anyting picking up a mailto: link.

Upvotes: 0

Related Questions