Hi, i tried to run my php file that can send mail,it is just very simple or basic way of sending mail because i am just learning on this.but when i run my file this is what it shows
( ! ) Warning: 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\SenMail\www\Reg.php on line 15
You don't usually have a mail server set-up locally, when you go live it should resolve itself if the server has mail running. For development purposes you can use a remote SMTP server http://email.about.com/od/emailprogrammingtips/qt/Configure_PHP_to_Use_a_Remote_SMTP_Server_for_Sending_Mail.htm
Hi, how can i use this in my free hosting?because i have website and i use free hosting.
They may not provide the service if it is free, you need to ascertain if they allow it before going down this route.
which one i am going to download i am confuse?
Not sure? Get more info.
pear install Mail-1.2.0
or this one
Try PEAR2's installer, Pyrus.
php pyrus.phar install pear/Mail-1.2.0
It shouldn't matter which one.
Could you get in touch with the company and ask whether or not it is installed? Be careful if you are on a shared server you may do damage to other sites.
Hi, I am not in the company i am just at home, i just want to test sending mail because i have not yet tried to send mail.I hope you can help me...
Do they not have contact details?
This topic is now closed. New replies are no longer allowed.