Problem with PHP Mail()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
viks
Forum Newbie
Posts: 2
Joined: Fri Jul 29, 2005 6:48 am

Problem with PHP Mail()

Post 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????
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post 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...
imstupid
Forum Commoner
Posts: 84
Joined: Fri Feb 18, 2005 1:24 pm

Post 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.
Post Reply