PDA

View Full Version : PHP mail() function not working


Allowee
04-28-2003, 08:34 AM
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...

KStange
04-28-2003, 11:56 AM
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?

Allowee
04-28-2003, 12:51 PM
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

KStange
04-28-2003, 07:33 PM
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.

Allowee
04-29-2003, 01:10 AM
can't you ask psoft what todo?

I'll post on there forums....
I'm just a bit bored....

[edit]
this is the thread..
http://forum.Psoft.Net/showthread.php?s=&threadid=4128

Chris
04-29-2003, 10:45 AM
Yeah I had this problem. I could receive email but when I sent email no one would receive it :shock:

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

KStange
04-30-2003, 12:21 AM
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. :-)

Allowee
05-16-2003, 02:21 PM
I promise after I get done with my finals, I'll fix the email. :-)
are you already done with your finals???
it's about 2 weeks now..

and now I got some exams this week..

KStange
05-18-2003, 06:48 PM
This should be fixed. Let me know if it's not.