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
Code:$mail->Mailer = "mail";Code:$mail->Mailer = "sendmail";as if it would be sent successfully, however I don't receive any email..... here is my code. Thank y'allCode:$mail->Mailer = "smtp";
Code:<?php require("class.phpmailer.php"); $mail = new phpmailer(); $mail->From = "[email protected]"; $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("[email protected]", "FULL_NAME"); $mail->AddAddress("[email protected]", "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(); ?>





Reply With Quote