<?php
$to = "me@headache.com";
$subject = "hi how are you";
$body = "helllo hello this is test.. this is test ........";
$headers = "From: mail@mail.co.uk\r\n" .
"X-Mailer: xxxx LONDON";
if (mail($to, $subject, $body, $headers)) {
echo("<p>Message sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
?>
Hello friends,
I want to send this email to different users.
I already have variables like
emails: <?=$row['email_add'] ?>
body: <?=$row['noteforstudents'] ?>
I just want different person to receive email according to the details above. Do I need to set up session or require_once for this ?
I don't know how to setup pls help
$to = "me@headache.com";
$subject = "hi how are you";
$body = "helllo hello this is test.. this is test ........";
$headers = "From: mail@mail.co.uk\r\n" .
"X-Mailer: xxxx LONDON";
if (mail($to, $subject, $body, $headers)) {
echo("<p>Message sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
?>
Hello friends,
I want to send this email to different users.
I already have variables like
emails: <?=$row['email_add'] ?>
body: <?=$row['noteforstudents'] ?>
I just want different person to receive email according to the details above. Do I need to set up session or require_once for this ?
I don't know how to setup pls help