Demonic Posted February 19, 2008 Share Posted February 19, 2008 <?php require("class.phpmailer.php"); $mail = new PHPMailer(); $mail->IsSMTP(); // telling the class to use SMTP $mail->Host = "mail.iwatch-this.info"; // SMTP server $mail->From = "[email protected]"; $mail->AddAddress("[email protected]"); $mail->Subject = "First PHPMailer Message"; $mail->Body = "Hi! \n\n This is my first e-mail sent through PHPMailer."; $mail->WordWrap = 50; if(!$mail->Send()) { echo 'Message was not sent.'; echo 'Mailer error: ' . $mail->ErrorInfo; } else { echo 'Message has been sent.'; } ?> I tried using this and nothing I get this: Message was not sent.Mailer error: SMTP Error: The following recipients failed: scheols[at]gmail.com[/qoute] Link to comment https://forums.phpfreaks.com/topic/91812-phpmailer-wont-send/ Share on other sites More sharing options...
gojiita Posted March 11, 2008 Share Posted March 11, 2008 mabe the mail doesnt excist or you have to put it online Link to comment https://forums.phpfreaks.com/topic/91812-phpmailer-wont-send/#findComment-489441 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.