I can get it to send the mail out to recipients, but I would like to personalise it :- ie Dear fred,
I cannot seem to get my head around it.
// For each subscriber line...
foreach($subscribers as $subscriber) {
// split subscriber info into array
$info = explode('|', $subscriber);
// Assign array to meaningful variable name
$name = $info[0];
$email = $info[1];
$company = $info[2];
$joined = $info[3];
// Build to address including subscriber name
$mailTo = "$name <$email>";
$mailBody ="Dear $name, /n $mailBody";
// Send email to
mail($mailTo, $mailSubject, $mailBody, "From: " . $mailFrom);
}
print "Email sent to all subscribers";
}
I am sure it is simple I just can't see it.