problem occurred when using mail() function
-
Hey my friends ... I was using mail() function but some error occured this is the code
Thank you!
</h1>
<p>Email sent. We will contact you as soon as possible
</p><p><br /></p>';}
else
echo 'not submitted';?>
when I use the above code this error occured
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:\wamp\www\Hiwi\send.php on line 26
Thank you!Email sent. We will contact you as soon as possible
Can any body help me on this? I thought it was because I wasnt connected to the internet ..... even after I connected to the internet it comes again. Is it because my site is not posted ? I am just working on it.... Any suggestions .... Thank you
-
Hey my friends ... I was using mail() function but some error occured this is the code
Thank you!
</h1>
<p>Email sent. We will contact you as soon as possible
</p><p><br /></p>';}
else
echo 'not submitted';?>
when I use the above code this error occured
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:\wamp\www\Hiwi\send.php on line 26
Thank you!Email sent. We will contact you as soon as possible
Can any body help me on this? I thought it was because I wasnt connected to the internet ..... even after I connected to the internet it comes again. Is it because my site is not posted ? I am just working on it.... Any suggestions .... Thank you
CoderForEver wrote:
Failed to connect to mailserver at "localhost"
I take it you don't have an SMTP server on your localhost as that is what the error means. You need to configure your php.ini with SMTP settings for a different, external SMTP server if you don't have one installed on your localhost. You can find lots of information about your problem by doing a simple Google search[^] with your error message.
If at first you don't succeed, you're not Chuck Norris.
-
CoderForEver wrote:
Failed to connect to mailserver at "localhost"
I take it you don't have an SMTP server on your localhost as that is what the error means. You need to configure your php.ini with SMTP settings for a different, external SMTP server if you don't have one installed on your localhost. You can find lots of information about your problem by doing a simple Google search[^] with your error message.
If at first you don't succeed, you're not Chuck Norris.
thank you man .... I already checked the SMTP .... I use Wamp Server just for to develop my websites. .... I will check ur soulutions Thank you.
-
Hey my friends ... I was using mail() function but some error occured this is the code
Thank you!
</h1>
<p>Email sent. We will contact you as soon as possible
</p><p><br /></p>';}
else
echo 'not submitted';?>
when I use the above code this error occured
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:\wamp\www\Hiwi\send.php on line 26
Thank you!Email sent. We will contact you as soon as possible
Can any body help me on this? I thought it was because I wasnt connected to the internet ..... even after I connected to the internet it comes again. Is it because my site is not posted ? I am just working on it.... Any suggestions .... Thank you
hey, although i havent tried emailing from my machine locally, just wondered if it was something to do with the mail client in your xammp control panel try turning on the mercury email client that should enable emailing from localhost. let me know if it works
-
hey, although i havent tried emailing from my machine locally, just wondered if it was something to do with the mail client in your xammp control panel try turning on the mercury email client that should enable emailing from localhost. let me know if it works
I have got one idea .. not zat much cool ... when I post my finished website ... zer will be a webserver which we will post on US ... I hope zis function is the purpose of zat machine ... wat do u tink so? ... I just use mail() function ... only
-
I have got one idea .. not zat much cool ... when I post my finished website ... zer will be a webserver which we will post on US ... I hope zis function is the purpose of zat machine ... wat do u tink so? ... I just use mail() function ... only