anoopd Posted October 18, 2009 Share Posted October 18, 2009 HI, I was playing with the phpMailer script and tried to send a smiple mail using their test script from my site ..... it said "send again" but i am not getting mail .......... Does anybody know what could have went wrong ...? Code: <?php /* * To change this template, choose Tools | Templates * and open the template in the editor. */ include_once('class.phpmailer.php'); $mail = new PHPMailer(); // defaults to using php "mail()" $body = $mail->getFile('contents.html'); $body = eregi_replace("[\]",'',$body); $mail->From = "president@******.org"; $mail->FromName = "President's Address"; $mail->Subject = "PHPMailer Test Subject via mail()"; $mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test $mail->MsgHTML($body); $mail->AddAddress("*******@yahoo.com", "Anoop D"); $mail->AddAddress("*******@gmail.com", "Anoop D"); //$mail->AddAttachment("member.gif"); // attachment if(!$mail->Send()) { echo "Mailer Error: " . $mail->ErrorInfo; } else { echo "Message sent again!"; } ?> Can anybody help with this ... or does my server supports only smtp ...? Quote Link to comment https://forums.phpfreaks.com/topic/178088-phpmailer-not-working/ Share on other sites More sharing options...
mikesta707 Posted October 18, 2009 Share Posted October 18, 2009 well if it said "mail sent again" than the class thinks that it succeeded in sending the mail. have you checked your spam folder, and double checked your email address is correct Quote Link to comment https://forums.phpfreaks.com/topic/178088-phpmailer-not-working/#findComment-939040 Share on other sites More sharing options...
anoopd Posted October 20, 2009 Author Share Posted October 20, 2009 Hi Mikesta707, Yea i tried using two address one gmail and one yahoo ... checked spam folder for yahoo .. think gmail hasnt got one .. checked multiple times and after trying it several time only i posted it here .. still not working for me:( Quote Link to comment https://forums.phpfreaks.com/topic/178088-phpmailer-not-working/#findComment-940155 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.