Hi all
I´m new here and I would like to ask your help in this problem that I have. I need to send an email to all the member in a Video Store, the email email is about to let they know about the new movies that are able to rent.
I create this scrip using phpmailer but I not sure if work fine, this script request the email address (from), the subject and the email address of the members, in the list of the email I wrote my email in order to received the email but I never received it
Here is the script
if($_POST['Submit']){
// Get the Variables From the Form
include_once('class.phpmailer.php');
$email = $_POST['email'];
$bcc = $_POST['bcc'];
$subject = $_POST['subject'];
$mail = new PHPMailer(); // defaults to using php "mail()"
$mail->From = "example@example.com";
$mail->FromName = "New movies";
$mail->ConfirmReadingTo= ('example@example.com');
$mail->Timeout=120;
$mail->Subject = $subject;
$body = $mail->getFile('contents.html');
$body = eregi_replace("[\]",'',$body);
$mail->AltBody = "Please check this email with IE o Mozilla"; // optional, comment out and test
$mail->AddEmbeddedImage('images/boletin08062009.jpg', 'Visit us', '/images/boletin08062009.jpg');
$mail->MsgHTML($body);
$mail->AddAddress($email);
$mail->AddBCC($bcc);
if(!$mail->Send()) {
echo "Mailer Error: " . $mail->ErrorInfo;
} else {
echo "Your email were sent !!";
}
}