hi all,

I am new to php and was trying to send an email .


i got the code from w3school site.
http://www.w3schools...hp/php_mail.asp

but when I run the code i got this error.


Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\PhpProject3\aa.php on line 17

i don't know how to configure php.ini

can any body to correct this error.

thx in advance,
menuka

There are a lot of threads on the subject within this forum, but most end up changing the mailing altogether. Changing the PHP.INI to a different mail server is usually not possible, because it does not support authentication (which most smtp servers require).

a

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.