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 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jan 2006
    Location
    Finland, Hollola
    Posts
    285
    Thanks
    8
    Thanked 0 Times in 0 Posts

    PHP Mail function not working with XAMMP?

    Hi,

    I've tried EasyPHP and normal PHP configuration and mail function worked well, but now I have XAMMP and my mail function is not working anymore.

    I've installed the full package of XAMMP succesfully.

    Error I got after trying to send: We do not relay non-local mail, sorry.

    Have someone any ideas? I've tried to put my From: -header to the following without luck:
    me@localhost
    me@example.com
    localhost
    *MYIP*

    Has someone idea on what is non-local mail? So I can not mail to anywhere else than my own cpu??
    PHP 5 & MySQL 5 (Y)

  • #2
    Regular Coder
    Join Date
    Dec 2004
    Location
    Manchester, UK
    Posts
    134
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sounds like you're trying to connect to an SMTP server that doesn't permit your host to relay mail. What's the SMTP setting in php.ini?

  • #3
    Regular Coder
    Join Date
    Jan 2006
    Location
    Finland, Hollola
    Posts
    285
    Thanks
    8
    Thanked 0 Times in 0 Posts
    ; For Win32 only.
    SMTP = localhost
    smtp_port = 25

    ; For Win32 only.
    sendmail_from = me@example.com
    PHP 5 & MySQL 5 (Y)


  •  

    Posting Permissions

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