View previous topic :: View next topic |
Author |
Message |
jtc970 -
Joined: 24 Mar 2003 Posts: 172
|
Posted: Fri Jan 09, 2004 10:51 am Post subject: having trouble with php mail() |
|
|
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 |
|
 |
Moxxnixx -
Joined: 21 Jun 2003 Posts: 1226 Location: Florida
|
Posted: Fri Jan 09, 2004 1:52 pm Post subject: |
|
|
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 |
|
 |
jtc970 -
Joined: 24 Mar 2003 Posts: 172
|
Posted: Fri Jan 09, 2004 2:27 pm Post subject: |
|
|
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 |
|
 |
Moxxnixx -
Joined: 21 Jun 2003 Posts: 1226 Location: Florida
|
Posted: Fri Jan 09, 2004 2:50 pm Post subject: |
|
|
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 |
|
 |
jtc970 -
Joined: 24 Mar 2003 Posts: 172
|
Posted: Fri Jan 09, 2004 8:25 pm Post subject: |
|
|
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 |
|
 |
|