i m using mail function and got this error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mohit_garg
Forum Newbie
Posts: 3
Joined: Sat Jul 23, 2005 8:47 pm

i m using mail function and got this error

Post 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?
mohit_garg
Forum Newbie
Posts: 3
Joined: Sat Jul 23, 2005 8:47 pm

this is the code

Post 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);
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Re: i m using mail function and got this error

Post 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.
Post Reply