PDA

View Full Version : simple mail to php ?



somdow
March 14th, 2004, 03:18 PM
ok with this line

<?php
mail("MY EMAIL HERE", $subject, $message, "From:() $from\nX-Mailer: PHP/" . phpversion());
?>

i get mail to my mailbox

so how can i get mail to multiple ppl, what do i add to this line i mean, i know i add multipple email addresses but how???

Jack_Knife
March 15th, 2004, 12:52 AM
Do you mean how do you send an email to multiple people? If so, just do it as you would in hotmail or outlook.
eg.

<?php mail("person@host.com; person2@host.com", $subject, $message, "From"); ?>
You may need to use a comma instead of a semi-colon instead, i'm not sure. =)