PHP Mail() Function on Localhost

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:

  1. Install / Properly configure an SMTP server on localhost port 25
  2. 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



Leave a reply



Submit