PHPmailer dont work
Posted: Thu Apr 19, 2007 2:28 pm
hello every one, any one to help me,
i m using the phpmailer script to send automatic mail
the problem that i have no mail send and no error by script.
im using php5 (one.com)
but if i use the php mail function it work.
thx for your help, and sorry for my bad english.
i m using the phpmailer script to send automatic mail
Code: Select all
<?php
require("class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "customer-smtp.one.com"; // SMTP server //mailout.one.com
$mail->Username = "contact@media19"; // your SMTP login name
$mail->AddAddress("chemstudio2@gmail.com");
$mail->Subject = "first mailing";
$mail->Body = "hi ! \n\n this is First mailing I made myself with PHPMailer !";
$mail->WordWrap = 50;
if(!$mail->Send())
{
echo "Message was not sent";
echo "Mailer Error: " . $mail->ErrorInfo;
}
else
{
echo "Message has been sent";
}
?>im using php5 (one.com)
but if i use the php mail function it work.
thx for your help, and sorry for my bad english.