Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Senior Coder
    Join Date
    Mar 2003
    Location
    Atlanta
    Posts
    1,037
    Thanks
    14
    Thanked 30 Times in 28 Posts

    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
    Last edited by StupidRalph; 10-02-2003 at 09:56 PM.
    Most of my questions/posts are fairly straightforward and simple. I post long verbose messages in an attempt to be thorough.

  • #2
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,067
    Thanks
    11
    Thanked 96 Times in 94 Posts
    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)

  • #3
    Senior Coder
    Join Date
    Mar 2003
    Location
    Atlanta
    Posts
    1,037
    Thanks
    14
    Thanked 30 Times in 28 Posts
    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.

  • #4
    Regular Coder
    Join Date
    Sep 2002
    Posts
    218
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you could use sendmail instead of mail() i think....

  • #5
    Senior Coder
    Join Date
    Mar 2003
    Location
    Atlanta
    Posts
    1,037
    Thanks
    14
    Thanked 30 Times in 28 Posts

    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.

  • #6
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,067
    Thanks
    11
    Thanked 96 Times in 94 Posts
    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)

  • #7
    Senior Coder
    Join Date
    Mar 2003
    Location
    Atlanta
    Posts
    1,037
    Thanks
    14
    Thanked 30 Times in 28 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •