|
-
February 6th, 2011, 11:07 AM
#1
An error in using E-mail function in php
Respected Sir,
As you know that i am studying php . But while studying i have done a php e-mail program . Doing that program i get the output and shows the
output as 'Mail sent'. But a warning was showing like this..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 G:\Xammp\xampp\htdocs\suraj\e_mail.php on line 12 ..
i have try my best to bug this warning but i was failed . I also check on the internet .. they shows some solutions ... i try to do it...
So i request U to help me
-
February 6th, 2011, 11:46 AM
#2
Re: An error in using E-mail function in php
PHP's mail() method does not handle errors from the SMTP service because they are separate. You need to properly edit your php.ini configuration file to point to your SMTP server.
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
-
February 11th, 2011, 06:30 AM
#3
Re: An error in using E-mail function in php
how to configure php.ini configuration? I'm using Xampp for doing Php....
-
February 11th, 2011, 07:44 AM
#4
Re: An error in using E-mail function in php
Open php.ini and edit the SMTP section.
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|