What is, in your opinion, the easiest approach to create and send emails? Doesn't matter whether its bulk emails or individual emails based on forms, whatever the case may be.

Or, if you have several methods, list them.

2 answers


Since we run PHP, PHPMailer class/library is what I choose when doing forms or any sort of notification system. It's pretty straight-forward and it does a lot of the grunt work, like generating a plain-text alternative to HTML e-mail.

Answered over 9 years ago by Nathan DeGruchy
  • I gotta learn PHP! I've been buying books, printing articles, and just casually playing around with LAMP installs, but I need to dive in. Unfortunately, I don't know much about it. But I'm willing to try it. Thanks for the advice! tahdhaze09 over 9 years ago

I do not know what is the easyest, but for a bulk mailing I hacked together a warmailing script in python using mimemail.

It uses 3 external files -> a html mail message, a txt (alternate) mail message and a csv file containing mail adresses, names and other info that can be merged with the messages.

For the design of the html message I now use the free mail templates from mailchimp (the downloads are on the bottom of the page) as a basis, which work perfectly on almost every mail client (both web and local). In my first attempt, I coded the html message myself, but this turned out to be a nightmare on just about every client except apple mail.

If you do not mind editing you own html, it might work for you.

--Edit : Added a link to the script I used. Hope someone finds it useful. You can dowload the zipped script files here

Edit the two configuration files "mailinginfo.py" and "settings.py" to your outgoing mail settings and to point to the source files you want to use.

I added a sample mailing (an actual mailing we are sending to promote a concert) so you can see what these files should look like.

Pretty basic, but it gets the job done :)

Answered over 9 years ago by Thie Thomsen
  • Definitely don't mind doing the HTML, actually have been doing that (actually, it's one long crazy string in a .NET app). I just thought there may be some system or some kind of ritual someone out there knows about that would make life easier. Good advice, thank you. tahdhaze09 over 9 years ago
  • Put the script up for anyone who wants to give it a go. The mailchimp templates are in there to :). The real lesson here is to just use a module, instead of hard coding the mime message yourself. For PHP PHPMailer seems to be the way to go. Python's builtin Mimemail module works pretty straightforward. Thie Thomsen over 9 years ago