cjbeck71081 Posted January 23, 2007 Share Posted January 23, 2007 I need to add a BCC and CC to a Form Mailer, can someone tell me how this is set up, here is a snippet of my code:[code]<?php$email=$_POST['email'];require("class.phpmailer.php");$mail = new PHPMailer();$mail->IsSMTP(); // telling the class to use SMTP$mail->Host = "relay-hosting.secureserver.net"; // SMTP server$mail->From = "orders@pbm-inc.com";$mail->AddAddress("$email");$mail->AddAddress("paul@pmitconsulting.com");$mail->AddAddress("orders@pbm-inc.com");[/code]I would like the AddAddress("paul@pmitconsulting.com"); to be a BCC and a CC to be sent to AddAddress("orders@pbm-inc.com) Quote Link to comment https://forums.phpfreaks.com/topic/35402-php-mailer-bcc-or-cc/ Share on other sites More sharing options...
redbullmarky Posted January 23, 2007 Share Posted January 23, 2007 have you tried to get the answer [url=http://phpmailer.sourceforge.net/]straight from the horses mouth[/url] first?you need to use either AddCC or AddBCC in the place of AddAddress.cheers Quote Link to comment https://forums.phpfreaks.com/topic/35402-php-mailer-bcc-or-cc/#findComment-167487 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.