This topic is locked
[SOLVED]

 send simple email with 2 field values in it

9/11/2012 10:56:36 AM
PHPRunner General questions
S
scoobysteve author

I would like to send a hard coded email to a number of clients when a new record has been added that registers a new clients name with the recipient. Would I have to create multiple instances of the below or could I create a BCC list of recipients.
how can I change the simple email template to include 2 fields from my database. the 2 names of the fields are FirstName & LastName
$email="test@test.com";

$message="I would like to register the following client with your company FirstName LastName thank you";

$subject="Registration of new client from My Company Name";

runner_mail(array('to' => $email, 'subject' => $subject,

'body' => $message));
Many thanks
Steve