Html form to send to email through mail()
Posted by: surik_babu (---.hsd1.md.comcast.net)
Date: January 26, 2016 04:32AM

Hi

I a getting the below error message from wamp server. Html form inputs fileds to send to email through php

mail(): Failed to connect to mailserver at "localhost" port 25, verify your SMTP and smtp_port setting in php.ini or use ini_set()


Please help me to solve this. If you need i will share my document files.

Regards
Surendra

Options: ReplyQuote
Re: Html form to send to email through mail()
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: January 26, 2016 01:10PM

Hi

Windows does not have a mail server, so unless you install one you cannot use the mail() command, as all it does is pass a mail onto a mail server.

I would suggest you look at phpMailer as this is a PHP class that will allow you to use for example your gmail/yahoo etc accout to send email.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.