Hello,

On 07/20/2004 10:22 AM, Phil Ewington - 43 Plc wrote:
Does anyone know of any PHP scripts that will generate emails from a
database of email addresses and an HTML template with bespoke content I.E
greetings, unsubscribe email address links, etc... and send to an SMTP
server?

I believe there may be complete solutions as you ask for Linux, but I don't know one to recommend.


You may also want to build one from existing components.

For composing HTML messages from templates, you may want to use this class:

http://www.phpclasses.org/mimemessage

You can use Smarty to compose the HTML document from a template and pass to the class above that comes with an example to do exactly that.

http://smarty.php.net/

To send via SMTP, you can use the class above inc conjunction with this:

http://www.phpclasses.org/smtpclass

To handle (un)subscriptions by e-mail and also the eventual bounced messages, you can make the messages go to an e-mail address associated to a POP3 mailbox and regularly poll that mailbox with for instance a class like this:

http://www.phpclasses.org/pop3class


--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to