How To Send Email From A Php Script Using Smtp Authentication
Sending Email With the PHP Mail Function When you use the PHP mail() function, you end up sending email directly from your web server rather than your mail server. If you have a mail server through your web host, or even a mail server with a different host, it’s usually better to send mail through that instead. The problem is that the PHP mail() function doesn’t provide any built-in way to send mail via SMTP....