jemz — 2012-11-29T11:13:55-05:00 — #1
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
richardaskew — 2012-11-29T12:11:40-05:00 — #2
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
jemz — 2012-11-29T12:17:56-05:00 — #3
Hi, how can i use this in my free hosting?because i have website and i use free hosting.
richardaskew — 2012-11-29T12:23:06-05:00 — #4
They may not provide the service if it is free, you need to ascertain if they allow it before going down this route.
jemz — 2012-11-30T00:37:39-05:00 — #5
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
richardaskew — 2012-11-30T06:50:22-05:00 — #6
It shouldn't matter which one.
richardaskew — 2012-11-30T06:56:08-05:00 — #7
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.
jemz — 2012-11-30T07:58:13-05:00 — #8
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...
richardaskew — 2012-11-30T08:25:15-05:00 — #9
Do they not have contact details?