Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mail function is not working at all 6

Status
Not open for further replies.

SPYDERIX

Technical User
Jan 11, 2002
1,899
CA
Hi,

I have apache 1.3.27 installed and the latest version of php and a mail server and the mail function doesn't seem to be working for me at all. Are there any special settings that I have to set in order to get it to work? I am running Win 2k Pro.

Thanks!

relax.gif


General Exception Error:

"Unknown has caused an unknown error in unknown, unknown will now unknown."
 
Did you change the value for
Code:
SMTP =
in your php.ini file? This is only required for Win32 servers, but must be set so that PHP knows what mail server to route mail() calls through. It should be something like

Code:
SMTP = mail.yourserver.com

Beau
 
Hi,

I tried that and it isn't working still. Any other suggestions?

Thanks!

relax.gif


General Exception Error:

"Unknown has caused an unknown error in unknown, unknown will now unknown."
 
o.k what did u give in the php.ini...

what is the error?

note: if internet is in ur system then:
SMTP = localhost
will do...

Known is handfull, Unknown is worldfull
 
Hi,

It used to only have localhost but that was was where I have started from and it's not working.

The error I'm getting is:

Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in e:\ on line 139

Thanks again!


relax.gif


General Exception Error:

"Unknown has caused an unknown error in unknown, unknown will now unknown."
 
Sorry I forgot to mention that I do have the sendmail_from part filled in with my email address

And as for the headers, I don't see why it's saying that seeing as how the script I'm using works on about 3 other apache servers with the newest php installed and even one server has the same mail server as me and it works there.

I don't get it.

Thanks!

relax.gif


General Exception Error:

"Unknown has caused an unknown error in unknown, unknown will now unknown."
 
hmmm are you sure this php.ini file is in your windows folder? you may have been working on another file all along :)

by the way, i also have a problem with mail().

i can't get it to work on localhost but have the php.ini file set right.
it says "Warning: Failed to Connect in " + name of script and line with mail().

so here's a dumb newbie question: is a mail server necessary on winxp if i push the mail through localhost (or at all)?

shouldn't there be a mailer in the system? i mean, why do they ship windows with outlook for?
otherwise, what do you recommend?

thanks for any answers.

It's not a question of Truth, it's a question of Faith. That's the reason for tolerance.
 
[hammer]

I feel like an idiot, when I re-installed everything not too long ago I put the php.ini file in C:\WINNT\SYSTEM 32 when in fact it should have been in C:\WINNT

OOPS!!

Thanks for all your help though! :)

relax.gif


General Exception Error:

"Unknown has caused an unknown error in unknown, unknown will now unknown."
 
heh... happens to the best of us.

It's not a question of Truth, it's a question of Faith. That's the reason for tolerance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top