having trouble with php mail()

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
jtc970
-


Joined: 24 Mar 2003
Posts: 172

PostPosted: Fri Jan 09, 2004 10:51 am    Post subject: having trouble with php mail() Reply with quote

I installed exoop and I am also running a mail server(602)
the mail server works fine from outlook and perl scripts

but when I try to send a message from exoops using php I get this error

Code:
Error Number: 2 [Warning]
Error Message: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing
In File: e:\webpage\cgi-bin\exoops\class\xoopsmailer.php
On Line: 590


I have my php.ini set up like this

Code:
define_syslog_variables  = Off
[mail function]
; For Win32 only.
SMTP = localhost

; For Win32 only.
sendmail_from = admin@scriptease.hopto.org

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


any ideas?
Back to top View user's profile Send private message
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Fri Jan 09, 2004 1:52 pm    Post subject: Reply with quote

Where it says SMTP = localhost in your php.ini file....
change it to SMTP = smtp.yourisp.com or whatever
your ISP gave you for an email account.

See if that works.
Back to top View user's profile Send private message Visit poster's website
jtc970
-


Joined: 24 Mar 2003
Posts: 172

PostPosted: Fri Jan 09, 2004 2:27 pm    Post subject: Reply with quote

im running the server myself. I tried changing it from localhost to scriptease.hopto.org but I get the same thing
dont even think e-xoops is getting that far.

oh well..willl keep trying other things...thanks
Back to top View user's profile Send private message
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Fri Jan 09, 2004 2:50 pm    Post subject: Reply with quote

What I'm saying is that the "smtp" and the "sendmail_from" doesn't have to be from the same account.
Just use the default smtp that your ISP included with your internet.
It will still show that it came from admin@scriptease.hopto.org
Back to top View user's profile Send private message Visit poster's website
jtc970
-


Joined: 24 Mar 2003
Posts: 172

PostPosted: Fri Jan 09, 2004 8:25 pm    Post subject: Reply with quote

i worked around the problem by adding

Code:
ini_set("sendmail_from", "admin@scriptease.hopto.org");
ini_set("SMTP", "localhost");


at the top of the xoopsmailer.php

thanks
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group