Click here to get back home

mail() function error: (SMTP server response: 501 5.5.4 Invalid Address)

 HomeNewsGroups | Search

comp.lang.php - PHP programming language discussions 

get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
mail() function error: (SMTP server response: 501 5.5.4 Invalid Address) Ronald Raygun 05-11-2008
Posted by Ronald Raygun on May 11, 2008, 12:53 pm
Please log in for more thread options
I am calling the mail() function in a PHP script and I get the ff error:

Warning: mail() [function.mail]: SMTP server response: 501 5.5.4 Invalid
Address in C:\test\test.php on line 394

Relevant Info:

OS: Win2k
Web Server Apache: v2.2.8

Has anyone come accross this before - and whats the solution?

Posted by Jerry Stuckle on May 11, 2008, 4:01 pm
Please log in for more thread options
Ronald Raygun wrote:
show/hide quoted text

It means your MTA has rejected the mail for some reason. You need to
find out what your MTA accepts and rejects.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================


Posted by Rik Wasmus on May 11, 2008, 9:10 pm
Please log in for more thread options
wrote:

show/hide quoted text

If I had to guess, either that server doesn't support the FROM / REPLY TO
address or the TO address. figure out which, and why, with the help of the
server admins of the particular SMTP server.
--
Rik Wasmus
[SPAM] Now temporarily looking for some smaller PHP/MySQL projects/work to
fund a self developed bigger project, mail me at rik at rwasmus.nl. [/SPAM]

Similar ThreadsPosted
Warning: mail(): SMTP server response: 505 5.7.3 Must issue a STARTTLS command first February 6, 2006, 6:56 am
mail function generates 500 internal server error May 12, 2006, 4:01 am
mail() on linux to use other smtp server February 9, 2005, 6:03 pm
Error #2003 the server has no response May 28, 2008, 9:44 am
test mail() on development machine w/o smtp server June 17, 2007, 11:05 am
Non-local SMTP mail function. October 4, 2006, 5:08 pm
[function mail() Windows XP]SMTP localhost April 4, 2006, 3:58 am
Re: ZendCore+FastCGI+IIS7 : Cannot embed PHP errors in response HTML. Always get 500 - Internal server error September 17, 2008, 5:21 pm
|OT| HTTP header response for invalid form inputs? October 2, 2005, 3:54 am
i am getting error while sending mail using mail() function April 6, 2005, 3:35 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Driving a better car - Fuelzilla.com

Cabling site for homeowners and pros alike - Cabling-Design.com

Friends:

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap
Privacy Policy