PHP mail() function not working

Discussion in 'Account, Technical & Site Help' started by Allowee, Apr 28, 2003.

  1. Allowee

    Allowee New Member

    PHP mail() function not working

    the PHP mail() function is not working.

    I did some debugging but it won't work.
    It seems that the mail server accepts the mail, but doesn't mail it.

    I don't see any errors.

    if you are using phpBB2 you can turn the smtp function on. it does work then.
    I guess this is something for psoft to solve...
     
  2. KStange

    KStange New Member

    I tried to fix the mail function. I edited the php.ini file. Do you know the proper configuration changes I need to make?

    I fixed mail sending with IMP. Is the forum sending the welcome email correctly?
     
  3. Allowee

    Allowee New Member

    this is what I got in my windows php.ini

    [mail function]
    ; For Win32 only.
    SMTP = 192.168.1.2

    ; For Win32 only.
    sendmail_from = mail@allowee.no-ip.com

    ; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
    ;sendmail_path =

    I've also tried using the 'From: ' header but it didn't work.....

    I got the welcome message correctly
    I also got mails about your replies......
    ________________
    Return-Path: <>
    X-Envelope-To: XXXXXXXXXX
    X-Spam-Status: No, hits=0.0 required=5.0
    X-Spam-Level:
    Received: from mail.nozonenet.com ([66.227.96.176])
    by XXXXXXXXX
    for XXXXXXXXXXX
    Mon, 28 Apr 2003 20:45:42 +0200
    Received: (qmail 73361 invoked from network); 28 Apr 2003 18:56:05 -0000
    Received: from unknown (HELO mail.nozonenet.com) (66.227.96.173)
    by . with SMTP; 28 Apr 2003 18:56:05 -0000
    Subject: Topic Reply Notification - PHP mail() function not working
    To: <>
    MIME-Version: 1.0
    Content-type: text/plain;
    charset=iso-8859-1
    Content-transfer-encoding: 8bit
    Date: Mon, 28 Apr 2003 18:56:13 UT
    X-Priority: 3
    X-MSMail-Priority: Normal
    X-Mailer: PHP
    From:
    _____________
    Maybe this can help you...
    did you set phpBB to use the smtp function?
    I don't think that that the mail server will only allow mails from simgames.net
     
  4. KStange

    KStange New Member

    Yes, I had to set it to use the SMTP function because there's no sendmail on the web server. I should probably set up a local sendmail of some kind to fix this problem.
     
  5. Allowee

    Allowee New Member

  6. Chris

    Chris New Member

    Yeah I had this problem. I could receive email but when I sent email no one would receive it o_O

    Kevin has fixed it for me now though. Don't know how :)
     
  7. KStange

    KStange New Member

    That was with the IMP mail system which I simply configured to use the mail server, as it was supposed to. The PHP mail() function is another matter entirely.

    I promise after I get done with my finals, I'll fix the email. :)
     
  8. Allowee

    Allowee New Member

    are you already done with your finals???
    it's about 2 weeks now..

    and now I got some exams this week..
     
  9. KStange

    KStange New Member

    This should be fixed. Let me know if it's not.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice