Page 1 of 1

Easy email question

Posted: Sat Jan 10, 2004 6:05 pm
by mikusan
I would like to enter multiple emails in the From: tag of the mail() function

Is there any way? Can i cheat and pass a string there?

The one line of code that i need help with is like this:

Code: Select all

function send_email($to,$subject,$content)
{
$headers = "From: <admin1@hotmail.com;admin2@hotmail.com>\n";

Posted: Sun Jan 11, 2004 9:38 am
by DuFF
You just need to seperate them by commas:

Code: Select all

<?php
$headers = "From: admin1@hotmail.com, admin2@hotmail.com\r\n";
?>