Click to See Complete Forum and Search --> : Problem sending mail using mail() function


pablogosse
10-16-2002, 05:18 PM
Hi all. I'm working on a new server and for some reason I can't seem to send mail using the mail() function.

Here's the code:

mail("gossep@unbc.ca", "Test Subject", "Line 1\nLine 2\nLine 3");

On the new server it doesn't work, but on my old server it works just fine.

Here's the php info file for the server where it doesn't work:

http://waddington.unbc.ca/phpinfo.php

Can anyone see what the problem is?

Thanks in advance,
Pablo

largo
10-16-2002, 08:09 PM
pablogosse,

check your your mail log files and see if you can spot something relevant when you execute that script. Also, have a look at the messages log.

Can you send messages from the console?

-m.

pablogosse
10-16-2002, 08:12 PM
Hmmmm, just tried both executing the mail() function directly, and also tried executing a file with the function in it, and both attempts failed telling me the command php doesn't exist.