Multi Receipt mail script is not working.

the mail() function

Moderators: macek, egami, gesf

Post Reply
developerahusain
New php-forum User
New php-forum User
Posts: 44
Joined: Tue May 28, 2013 10:04 pm
Location: India,Lucknow

Re: Multi Receipt mail script is not working.

Post by developerahusain » Sat Jun 08, 2013 4:28 am

Here is the entire code i'm using for sending multi receipt mail

//you should do it like this to send multiple mails
$to ="pradeep@hotmail.com,pradeep@gmail.com";
$subject ='Job Opportunity @ m`brace';
$message ='<head>
<title>Untitled Document</title>
<link href="../include/css/style.css" rel="stylesheet" type="text/css" />
</head>

<body>your content goes here</body';

$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";

// More headers
$headers .= 'From:'.$_POST['from']."\r\n";

mail($to,$subject,$message,$headers);

developerahusain

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests