PDA

View Full Version : Bulk emails with UE


Steve272190
06-08-2009, 12:44 PM
Here are the requirements of a simple bulk emailer I am putting together:

1) Send to a group of email contacts based on a recordset query.
Complete - UE does this with no problems by selecting a dynamic list of recipients.

2) Send as individual mails to each person in the prior noted query and then be able to create dynamic or personalized emails. Such as Hello <?php echo $recordset['userName'] ?>

But more importantly than the personalized email for the sake of knowing the recipients name, it allows us to create an Opt Out link, so that when clicked, we know the userID and can allow a single click opt out.

Opt Outs are the law with a $25k penalty in the US so it is a very important aspect of any mass mailing campaign.

Is this possible with the basic UE to add dynamic values per email?

Ray Borduin
06-08-2009, 03:54 PM
Yes, if you send emails using a dynamic FROM and a recordset, anytime you refer to that specific recordset it will be on the record associated with that user. So it is kind of automatic as long as you use the same recordset for the TO loop and for the email body.

Steve272190
06-08-2009, 05:09 PM
Yes, that makes clear sense..

What about how to have a value show in the PHP $MailBody code?

For instance, if I want to have this value show : $row_Recordset1['mailId']

The following use/example, where there is a single line echoing the value, breaks the whole process and no emails are send or errors generated.


$MailBody = $MailBody . " <td width=\"549\" height=\"663\" valign=\"top\" bgcolor=\"#FFFFFF\">Some information for &lt;&gt;</td>\r\n";
$MailBody = $MailBody . "echo $row_Recordset1['mailId']";
$MailBody = $MailBody . " <td>\r\n";

Any ideas on that one?

Ray Borduin
06-09-2009, 07:29 AM
$MailBody = $MailBody . " <td width=\"549\" height=\"663\" valign=\"top\" bgcolor=\"#FFFFFF\">Some information for &lt;&gt;</td>\r\n";
$MailBody = $MailBody . $row_Recordset1['mailId'];
$MailBody = $MailBody . " <td>\r\n";

Steve272190
06-09-2009, 07:52 AM
$MailBody = $MailBody . " <td width=\"549\" height=\"663\" valign=\"top\" bgcolor=\"#FFFFFF\">Some information for &lt;&gt;</td>\r\n";
$MailBody = $MailBody . $row_Recordset1['mailId'];
$MailBody = $MailBody . " <td>\r\n";

No quotes needed as it is not a string. Got it. Thanks!