Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP Version 4.4.9 - sendmail issues

Status
Not open for further replies.
Aug 23, 2004
174
US
I'm working on a godaddy.com hosting account with PHP Version 4.4.9. I'm trying to send mail using the mail() function, but whenever an invalid email is entered, I get an error message saying the message has been saved in a dead.letter folder. Is there a way for me to disable this message?

Thanks

Joe Brown
Web Designer & Developer
 
i believe that your sendmail setting is on verbose. there are three ways to deal with this. the first is best.

method one: edit your php.ini to remove the '-v' from the sendmail _path directive

method two - buffer your output around the mail call

Code:
ob_start();
@mail($to, $subject, $message, $header);
ob_end_clean();

method three - use phpmailer with the SMTP class.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top