jcavard
Feb 22nd, 2006, 01:17 PM
Hi!
I'm trying to set up a phpmailer script on a linux system. I'm having some issue when sending mail. I get no error whether I use
$mail->Mailer = "mail";
$mail->Mailer = "sendmail";
$mail->Mailer = "smtp";
as if it would be sent successfully, however I don't receive any email..... here is my code. Thank y'all
<?php
require("class.phpmailer.php");
$mail = new phpmailer();
$mail->From = "mail@groupeghyperforme.com";
$mail->FromName = "List manager";
$mail->Host = "localhost";
$mail->Mailer = "smtp";
// HTML body
$body = "Hello <font size=\"4\">FULL_NAME</font>, <p>";
$body .= "<i>Your</i> personal photograph to this message.<p>";
$body .= "Sincerely, <br>";
$body .= "phpmailer List manager";
// Plain text body (for mail clients that cannot read HTML)
$text_body = "Hello FULL_NAME, \n\n";
$text_body .= "Your personal photograph to this message.\n\n";
$text_body .= "Sincerely, \n";
$text_body .= "phpmailer List manager";
$mail->Body = $body;
$mail->AltBody = $text_body;
$mail->AddAddress("jc.avard@luxury-design.com", "FULL_NAME");
$mail->AddAddress("jc.avard@neta.ca", "FULL_NAME");
//$mail->AddStringAttachment($row["photo"], "YourPhoto.jpg");
if(!$mail->Send())
echo "There has been a mail error";
// Clear all addresses and attachments for next loop
$mail->ClearAddresses();
$mail->ClearAttachments();
?>
I'm trying to set up a phpmailer script on a linux system. I'm having some issue when sending mail. I get no error whether I use
$mail->Mailer = "mail";
$mail->Mailer = "sendmail";
$mail->Mailer = "smtp";
as if it would be sent successfully, however I don't receive any email..... here is my code. Thank y'all
<?php
require("class.phpmailer.php");
$mail = new phpmailer();
$mail->From = "mail@groupeghyperforme.com";
$mail->FromName = "List manager";
$mail->Host = "localhost";
$mail->Mailer = "smtp";
// HTML body
$body = "Hello <font size=\"4\">FULL_NAME</font>, <p>";
$body .= "<i>Your</i> personal photograph to this message.<p>";
$body .= "Sincerely, <br>";
$body .= "phpmailer List manager";
// Plain text body (for mail clients that cannot read HTML)
$text_body = "Hello FULL_NAME, \n\n";
$text_body .= "Your personal photograph to this message.\n\n";
$text_body .= "Sincerely, \n";
$text_body .= "phpmailer List manager";
$mail->Body = $body;
$mail->AltBody = $text_body;
$mail->AddAddress("jc.avard@luxury-design.com", "FULL_NAME");
$mail->AddAddress("jc.avard@neta.ca", "FULL_NAME");
//$mail->AddStringAttachment($row["photo"], "YourPhoto.jpg");
if(!$mail->Send())
echo "There has been a mail error";
// Clear all addresses and attachments for next loop
$mail->ClearAddresses();
$mail->ClearAttachments();
?>