mittul chauhan - 2011-08-12

hello .. i have a website in which i want to send emails using php version 5.x

so i have downloaded PHPMAILER VERSION 5.X and uploaded the whole folder using
FTP to my website ...

now to my WWW folder i have made one php webpage called as testmail.php ..
here is my code ..



ini_set("include_path", ".:/orange/phpmailer/");


$mailer = new PHPMailer();


$mailer->Host = 'myhost';

$mailer->SMTPAuth = true;

$mailer->Username = '';

$mailer->Password = 'my password';

$mailer->FromName = 'name';

$mailer->From = '';


$mailer->Subject = 'Subject';

$mailer->Body = 'body Text';



echo "Message was not sent";

echo "Mailer Error: " . $mailer->ErrorInfo;





but as soon as i run this page, m keep getting this error saying . .

SMTP Error: The following recipients failed: Message was not
sentMailer Error: SMTP Error: The following recipients failed:

SMTP server error: No such user here

what ever email address i write here


m getting that email as an error above

can you tell why m getting this error ..i have tried so many email id and
valid email ids there which are currently enable and running .. still getting
the same error whichever email i use ...

whats wrong in my code ..

please help me ..