Hi,
i used this code to send email to many people when a table is added.
The email arrives correctly but in the email box i saw that every account email customers are visible in the "to" field. Is it possible that the email arrives to my selected customers but each customer see only his name in the "to" field?
I post the code
/ Email Sending event
function Email_Sending(&$Email, &$Args) {
if (CurrentPageID() == "add") { // Means email sending by insert record.
$rsnew = $Args["rsnew"]; // get the $rsnew from the $Args array.
ew_Execute("SELECT email FROM utenti WHERE livello = 1", function($row) use (&$Email) {
if ($row["email"]) $Email->Recipient = $Email->Recipient . " , " . $row["email"];
});
}
return TRUE;
}
thank you so mutch