Salve, posto il codice per mandare le mail in bcc, magari a qualcuno può servire
codice:include_once('class.phpmailer.php'); include_once('class.smtp.php'); $email_to =new PHPMailer(); //mittente $email_to->From = "andrea@interfree.it"; $email_to->Sender="andrea@interfree.it"; $email_to->FromName = "Staff "; $email_to->Subject = "presentazione: "; $email_to->Body = "ciao"; $email_to->isSMTP(); $email_to->SMTPAuth = false; $email_to->IsHTML(false); $email_to->Host = "localhost"; $email_to->Mailer = "smtp"; $email_to->replyTo = "andrea@interfree.it"; $email_to->AddBCC('stefano@interfree.it'); $email_to->AddBCC('luigi.caccioli@gmail.com'); $email_to->AddBCC('carlo998@libero.it'); $email_to->AddBCC('beppe.fiori@hotmail.it'); $email_to->AddAddress('andrea.galli94@gmail.com'); if (!$email_to->Send()) { $message = "Si è verificato un errore nell' invio della mail di conferma".$email_to->ErrorInfo; } else $message="tutto ok!!"; echo " "; echo "Invio mail: " . $message; $email_to->ClearAddresses(); $email_to->ClearBCCs(); $email_to->ClearAttachments();

Rispondi quotando