Hello, on 01/24/2008 09:20 PM Rene Brehmer said the following: > Drew a blank off the archive, so here goes... > > I'm working on some forms for our company website, all of which simply have > to be mailed to us by email. > > After verifying that the content of all the fields is valid and the proper > type, it builds the email message as following. This all works great, but I > want a simpler/easier way to reuse the code (we have 3 forms, with > distinctively different content, but the mail process remains the same), so > something that will do the below, but can be reduced to something like > grabbing a text file and fill in the blanks would be nice, instead of this: As already been suggested by others, you may want to try the MIME message class. http://www.phpclasses.org/mimemessage It seems that you want to send personalized messages to multiple recipients. Usually you use a template and have it processed for each recipient. The class above comes with two alternative examples for doing that: Using simple template string concatenation: test_personalized_bulk_mail.php or using Smarty templates: test_smarty_personalized_mailing.php -- Regards, Manuel Lemos PHP professionals looking for PHP jobs http://www.phpclasses.org/professionals/ PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php