Page 1 of 1

Problem with PHP Mail()

Posted: Fri Jul 29, 2005 10:06 am
by viks
Hey all,

im new to PHP and need some help

I want to use PHP to send mail and i know i got to use the mail() function and thats fine but it doesnt work.

Iv looked into setting up the PHP.ini file but it dont work.

Can anyone help????

Posted: Fri Jul 29, 2005 10:15 am
by Burrito
the mail() function uses a SMTP server that you designate within your php.ini file. You need to make sure that you can send mail through the server and that it doesn't require authentication. If it does, you will need to send some additional headers to the server to authenticate and send out mails.

there are other mail solutions, most notably phpMailer that you might look into...

Posted: Fri Jul 29, 2005 10:33 am
by imstupid
it could be a slew of things... stick with burrito's advice and if you get farther along and are still having problems, try checking the log files and do basic searches for them.