Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Mail

Cc and Bcc in mail() ...

the mail() function

Moderators: macek, egami, gesf

Postby vikas » Wed Dec 11, 2002 12:53 am

hi


headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/plain; charset=iso-8859-1\r\n";
$headers .= "Content-Transfer-Encoding: 7bit\r\n";
$headers .= "From: <me@domain.com>\r\n";
$headers .= "To: <you@your.com>\r\n";
$headers .= "Cc: <me2@domain.com>\r\n";
$headers .= "Bcc: <me3@domain.com>\r\n";
$headers .= "Reply-To: <me@domain.com>\r\n";
$headers .= "X-Priority: 1\r\n";
$headers .= "X-MSMail-Priority: High\r\n";
$headers .= "X-Mailer: PHP4\r\n";
mail("you@your.com", $subject, $message, $headers);

i think the above code would work fine

if you still finding error, contact me

vikas@dinsol.com
rv1605@yahoo.com

or visit my official site

http://www.dinsol.com/
User avatar
vikas
New php-forum User
New php-forum User
 
Posts: 6
Joined: Sun Dec 08, 2002 11:12 pm
Location: india

Return to PHP coding => Mail

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron