Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-02-2003, 06:41 PM   PM User | #1
StupidRalph
Senior Coder

 
Join Date: Mar 2003
Location: Atlanta
Posts: 1,037
Thanks: 14
Thanked 30 Times in 28 Posts
StupidRalph is on a distinguished road
Mail script MALFUNCTION()

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.


PHP Code:
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
__________________
Most of my questions/posts are fairly straightforward and simple. I post long verbose messages in an attempt to be thorough.

Last edited by StupidRalph; 10-02-2003 at 09:56 PM..
StupidRalph is offline   Reply With Quote
Old 10-03-2003, 12:38 PM   PM User | #2
firepages
Super Moderator


 
Join Date: May 2002
Location: Perth Australia
Posts: 3,943
Thanks: 7
Thanked 82 Times in 81 Posts
firepages will become famous soon enough
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.
__________________
resistance is...

MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)
firepages is offline   Reply With Quote
Old 10-03-2003, 06:36 PM   PM User | #3
StupidRalph
Senior Coder

 
Join Date: Mar 2003
Location: Atlanta
Posts: 1,037
Thanks: 14
Thanked 30 Times in 28 Posts
StupidRalph is on a distinguished road
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.
__________________
Most of my questions/posts are fairly straightforward and simple. I post long verbose messages in an attempt to be thorough.
StupidRalph is offline   Reply With Quote
Old 10-03-2003, 07:14 PM   PM User | #4
SpeedFreak
Regular Coder

 
Join Date: Sep 2002
Posts: 218
Thanks: 0
Thanked 0 Times in 0 Posts
SpeedFreak is an unknown quantity at this point
you could use sendmail instead of mail() i think....
SpeedFreak is offline   Reply With Quote
Old 10-03-2003, 09:12 PM   PM User | #5
StupidRalph
Senior Coder

 
Join Date: Mar 2003
Location: Atlanta
Posts: 1,037
Thanks: 14
Thanked 30 Times in 28 Posts
StupidRalph is on a distinguished road
SpeedFreak

Are you referring to: mb_send_mail()?
__________________
Most of my questions/posts are fairly straightforward and simple. I post long verbose messages in an attempt to be thorough.
StupidRalph is offline   Reply With Quote
Old 10-04-2003, 01:45 AM   PM User | #6
firepages
Super Moderator


 
Join Date: May 2002
Location: Perth Australia
Posts: 3,943
Thanks: 7
Thanked 82 Times in 81 Posts
firepages will become famous soon enough
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
__________________
resistance is...

MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)
firepages is offline   Reply With Quote
Old 10-05-2003, 10:49 PM   PM User | #7
StupidRalph
Senior Coder

 
Join Date: Mar 2003
Location: Atlanta
Posts: 1,037
Thanks: 14
Thanked 30 Times in 28 Posts
StupidRalph is on a distinguished road
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.
__________________
Most of my questions/posts are fairly straightforward and simple. I post long verbose messages in an attempt to be thorough.
StupidRalph is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:24 AM.


Advertisement
Log in to turn off these ads.