mattbostock / leavediary

LeaveDiary is a web application for tracking annual leave
MIT License
2 stars 0 forks source link

Send welcome email to new users #8

Open mattbostock opened 9 years ago

ajlanghorn commented 9 years ago

Would SES suffice for sending mail via SMTP? There's an official SDK for Golang that I think would work quite well for this, especially because you can just import the stuff you need for specific services. There are also some other unofficial libraries that might work in place.

mattbostock commented 9 years ago

Using SMTP would be fine though I don't think there's a good reason to restrict it to Amazon SES. If the interface to send email is SMTP, any provider could be used.

I have a HTML template that can be used for the welcome email - I'll push that to a branch.

mattbostock commented 9 years ago

I've created a basic HTML template here, on a branch: https://github.com/mattbostock/leavediary/blob/welcome_email/templates/welcome_email.tmpl

ajlanghorn commented 9 years ago

Ah, I see: those who run this provide their own SMTP details. In that case, yes - much better to make connections to the details the user provides.