Jump to content

Specifying multiple recipients in a php mail script?


quarantine

Recommended Posts

So lets say I am using a simple mail script like

 

<?php
$to = "[email protected]";
$subject = "Hi!";
$body = "Whats up??";
if (mail($to, $subject, $body)) {
  echo("<p>Message successfully sent!</p>");
} else {
  echo("<p>Message delivery failed!!!</p>");
}
?>

 

So with this script is will send a message to "[email protected]" how can I add more recipients? Like 3 or 4 people?

 

thanks.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.