SimpleMailMerge

This project is hosted by   SourceForge.net Logo  here!!! 

The SimpleMailMerge consists in a PHP script that read a list of email and other field from a file and it merges this
information with a template.

It sent an email for each entry..

Actually the body of emails is read from a TXT or CSV file

format:

TXT sample
pr@wow.com Paul Ross red
rr@foo.com Ron Rich blue

CSV sample
"Email";"Name";"Surname";"eye";
"pr@wow.com";"Paul";"Ross";"red"
"rr@foo.com";"Ron";"Rich";"blue"


The template can be in TXT or HTML format.

The substitutions are done replacing $field$..

In TXT the fields are named 0,1,2,...  sample:

!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head></head><body>
<br>Hi $1$ $2$<br><br>
Your eyes are $3$ !!<br>
<br><b style="color : $eye$;">THIS COLOR</b><br><br>
</body></html>

In CSV the firsh row contains the name of fields, so:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head></head><body>
<br>Hi $Name$ $Surname$<br><br>
Your eyes are $eye$ !!!<br style="font-family: arial black;">
<br><b style="color : $eye$;">THIS COLOR</b><br><br>
</body></html>

A simple html form is used to send emails...

You can configure the subject and the From email.

I use this script in my company for:
1. send a newsletter to all registered user
2. send password to updated user
3. send notice to all registered user
4. send an invitation card
5. send a Christmast card  :-)  
6. send a personalized estimate for upgrade


The great thing is that every email is personalized!!!
eXTReMe Tracker