How do I figure out the smtp_port for my localhost? <p>I am using a script that is sending out emails and I am receiving the following error:</p> <p><strong>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\bin\php\php5.3.0\PEAR\Mail\mail.php on line 125</strong></p> <p>How to i figure out the stmp_port for my localhost?</p> <p>EDIT:</p> <p>I am sorry. I don't have my own server on my computer and I don't think I want to set one up either. I didn't realiza that it what it takes. I do have a hosting provider though and would like to figure out how to use their smtp information to send my mail though if anyone knows how to do that.</p> <p>According to the reply by Nathan Adams, I can use my hosting provider's smtp information. What exactly do I need to find out where do I put that information in my php.ini file?</p>