PHP : send mail in localhost
It is configured to use localhost:25
for the mail server.
The error message says that it can't connect to localhost:25
.
Therefore you have two options:
- Install / Properly configure an SMTP server on localhost port 25
- Change the configuration to point to some other SMTP server that you can connect to
Sending email from php on localhost
Use this sendmail program to use with an SMTP account like a gmail account. Here is the main project site http://glob.com.au/sendmail/ and here is a quick howto from another answer on SO https://stackoverflow.com/a/11210090/209067
This is i what use for my local windows environment, i just can't find the full article tutorial where i learned about it.
Related Topics
Finding the Subsets of an Array in PHP
Send Array With Ajax to PHP Script
PHP Replacing Multiple Spaces With a Single Space
How to Use Basic Authorization in PHP Curl
What Is Autoloading; How to Use Spl_Autoload, _Autoload and Spl_Autoload_Register
Connect PHP to Mssql Via Pdo Odbc
Sorting a Multidimensional Array in PHP
Writing a New Line to File in PHP (Line Feed)
PHP Json_Encode Not Working on Arrays Partially
PHP Buffer Ob_Flush() Vs. Flush()
How to Only Allow Certain Filetypes on Upload in PHP
PHP Json_Decode() Returns Null With Valid Json
Best Practice on PHP Singleton Classes
Pdo With Insert into Through Prepared Statements
How to Make a Simple Crawler in PHP
Accessing Outside Variable Using Anonymous Function as Params
PHP: Warning: Sort() Expects Parameter 1 to Be Array, Resource Given