Page 1 of 1

i m using mail function and got this error

Posted: Sat Jul 23, 2005 10:21 pm
by mohit_garg
Warning: mail(): SMTP server response: 553 sorry, <postmaster@hsphere.cc> is in my badmail list (#5.7.1) in F:\somelocation.php on line 46
this is the error i recieved when i tried to use mail function without the sender's name.
how can i use mail function successfully?

this is the code

Posted: Sat Jul 23, 2005 10:24 pm
by mohit_garg
$to="saahil_garg@yahoo.com";
$subject="Request send to Administrator";
$message=" Blah Blah Blah Blah Blah Blah";
$flag=mail($to, $subject, $message);

Re: i m using mail function and got this error

Posted: Sun Jul 24, 2005 8:07 am
by Roja
mohit_garg wrote:Warning: mail(): SMTP server response: 553 sorry, <postmaster@hsphere.cc> is in my badmail list (#5.7.1) in F:\somelocation.php on line 46
That badmail error is from qmail. Qmail will not let you send from "postmaster". Postmaster shouldn't be sending things. Thats bad.
mohit_garg wrote:this is the error i recieved when i tried to use mail function without the sender's name.
You didn't use the mail function without the sender's name. You failed to specify one, and qmail defaulted to postmaster. Postmaster isn't allowed to send mail.
mohit_garg wrote:how can i use mail function successfully?
Specify a valid mail user to send from.