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 = "iwatchth@iwatch-this.info"; $mail->AddAddress("scheols@gmail.com"); $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] Quote Link to comment 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 Quote Link to comment 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.