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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question about the mail() function

Status
Not open for further replies.

kjspear

Programmer
Joined
Feb 13, 2002
Messages
173
Location
US
Hello,

I'm new to php. I recently attempted to use the mail() function for my webpage. However, I received the following;

"Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for mkt2000@somecompany.com"

This is php 4 on windows xp pro. Whata I'm basically trying to do is keep itas simple as possible. The vistor enters an email address and a message is sent to his or hers mailbox.

Any suggestions would be helpful.

Thanks
Kyle
 
This is really a mail server problem.
Most mail server providers do not allow relaying anymore. That means you need to log into the server before you can send mail.

If you running the mailserver on the same machine you can change the server setup to allow mail sent from the localhost.

However, be careful not to open your server as a relay or the SPAMMERs will have a field day.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top