frequently ask ? : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

3 of 13 people (23%) answered Yes
Recently 3 of 10 people (30%) answered Yes

Entry

I get an error when i use SMTP server to send mail by php.I'm using win XP

Sep 18th, 2003 08:59
Chris Hayes, Zerog Zerog,


Depends on the error. 
If you use the mail() function you need to define a smtp server in your
php.ini (usually in c:/windows or c:/winnt/system) and then restart your
server. You must have permission to use the smtp server. Normally when
it works in your email program it will work in php too.