The PHP mail function
Posted by: masaka (95.151.52.---)
Date: August 29, 2016 03:15PM

I have got the following error message when I attempted to send an email using the PHP mail function:

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\phppower\proj5\fileincludes\myprocessform.php on line 51
Can someone please help with how I should go about altering the relevant settings in my PHP ini to be able to send emails using the PHP mail function.
Thanks

Options: ReplyQuote
Re: The PHP mail function
Posted by: Otomatic (Moderator)
Date: August 29, 2016 04:03PM

Hi,

> Warning: mail(): Failed to connect to mailserver
You need to install a mail server. There is no mail server with Windows.
Or to use PhpMailer and an authentified SMTP.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.