Jump to content

PHP Mailer BCC or CC


cjbeck71081

Recommended Posts

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 = "[email protected]";
$mail->AddAddress("$email");
$mail->AddAddress("[email protected]");
$mail->AddAddress("[email protected]");
[/code]

I would like the AddAddress("[email protected]"); to be a BCC and a CC to be sent to AddAddress("[email protected])
Link to comment
https://forums.phpfreaks.com/topic/35402-php-mailer-bcc-or-cc/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.