View Full Version : Mail script MALFUNCTION()

10-02-2003, 07:41 PM
Anyone ever have SMTP Server response: 553 Requested action not taken: Relaying not permitted.

While trying to use the mail function I received this error. I even substituted the variables with strings and I still receive the error. I tried both double and single quotes. I am using a windows server who that implements PHP 4.3.0. Could this be that my host needs to add me to the relay list on the SMTP server. This will make sense if it is set to 'Only list below'. Well anyway this is the code I tried.

mail('StupidRalph2001 at yahoo dot com','My Subject','This is a test message.');

F.Y.I- Just in case you didn't know my email is written like that in an attempt to avoid spam, even though this is my spam account :thumbsup:

10-03-2003, 01:38 PM
Hi , it means that your ISP's mail-server requires authentication , a good thing in da fight against SPAM , a bad thing for PHP's mail() which currenly does not try and authenticate.

So your options are either find yourself an SMTP mail script or get a local mailserver up and running.

10-03-2003, 07:36 PM
Thanks FirePages. I tried Google for a SMTP mail script but to no avail. In fact, I am not familiar with the term SMTP mail script. What will this be written in?

Or do you have any suggestions on a local mailserver? Qmail or something.

10-03-2003, 08:14 PM
you could use sendmail instead of mail() i think....

10-03-2003, 10:12 PM
Are you referring to: mb_send_mail()?

10-04-2003, 02:45 AM
Hi , sendmail is a common unix mailserver not a PHP function , you can get sendmail for windows if you google it , I dont myself use a win32 mailserver so I cant really advise.

mb_send_mail is just a wrapper of mail using the MultiByte functions & as far as I can see is little different to mail()

if you go to hotscripts.com there should be a few SMTP scripts there and also check out http://www.zend.com/codex.php?CID=11

10-05-2003, 11:49 PM
I am still reading up on Sendmail. So I am not sure if this solves my problem. Sendmail's site does really provide insight of what it does or how it works. I'll keep researching but since this is a small component of a larger project I'll try and work around it until I am forced to handle it.