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 5 of 5

Thread: php mail setup

  1. #1
    Regular Coder GO ILLINI's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    634
    Thanks
    0
    Thanked 7 Times in 7 Posts

    php mail setup

    I have it all set up(i think) right. But i still get an error message saying:
    Code:
    Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in Z:\users\sadako232\register\stuff.php on line 20
    I know that the smtp server is set though...
    php.ini
    Code:
    SMTP = smtp.sbcglobal.yahoo.com
    When i use:
    PHP Code:
    ini_set(SMTP"smtp.sbcglobal.yahoo.com"); 
    I get this error:
    Code:
    Warning: mail() [function.mail]: SMTP server response: 530 authentication required - for help go to http://help.yahoo.com/help/us/sbc/dsl/mail/pop/pop-11.html in Z:\users\sadako232\register\stuff.php on line 20
    Nothing on that page helps me... Any help would be greatly appriciated,

    Thanks,
    ILLINI
    Why not thank me?

    http://adamsworld.name

  • #2
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Well it sounds like for PHP to connect and send out using that SMTP server you need to have it also authenticate itself via a username and password. I'd imagine they have it setup that way so people just don't use them to send out like spam and stuff.
    OracleGuy

  • #3
    Regular Coder GO ILLINI's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    634
    Thanks
    0
    Thanked 7 Times in 7 Posts
    but how do I set that in the ini? smtp_username and smtp_password ?
    Why not thank me?

    http://adamsworld.name

  • #4
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    If those are options in the INI file, I'd imagine thats the ones you'd want to set.
    OracleGuy

  • #5
    Regular Coder GO ILLINI's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    634
    Thanks
    0
    Thanked 7 Times in 7 Posts
    no there is nothing in there about username and password.
    Why not thank me?

    http://adamsworld.name


  •  

    Posting Permissions

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