mail error?
Posted by: Doodayer (---.ucom.net)
Date: November 29, 2014 04:54AM

i keep getting this error when i try to run a .php file, which should act as a contact form for my site
error:
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\site\contact.php on line 76

what does it mean "verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()"

Options: ReplyQuote
Re: mail error?
Posted by: RiggsFolly (---.as43234.net)
Date: November 29, 2014 01:34PM

There is no mail server by default on a windows desktop system.

If you want to test mail, you either need to install a mail server and configure it, or use a library like phpMailer which will interface with for example you yahoo/gmail account

---------------------------------------------------------------------------------------------
(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
Re: mail error?
Posted by: Doodayer (---.ucom.net)
Date: November 29, 2014 03:11PM

so after my site goes live, is there any need for this? If so, what would you recommend I use most for the performance side?

Edit: also, how can i get wamp to stop posting the error/warning messages on the site itself?



Edited 2 time(s). Last edit at 11/29/2014 03:14PM by Doodayer.

Options: ReplyQuote
Re: mail error?
Posted by: RiggsFolly (---.as43234.net)
Date: November 29, 2014 03:23PM

Have you looked at your php.ini file like the error suggests?

---------------------------------------------------------------------------------------------
(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.