No I want to use another SMTP server instead of localhost
In your script protected
$from = 'root@localhost';
I would like to use
Outgoing Mail (SMTP) Server: smtp.gmail.com
Use Authentication: Yes
Use Secure Connection: Yes (TLS or SSL depending on your mail client/website SMTP plugin)
Username: your Gmail account (e.g.
[email protected])
Password: your Gmail password
Port: 465 (SSL required) or 587 (TLS required)