Send email using PHP mail() function

PHP has built-in mail() function which can be used to send email without authentication. You just need to make sure that server is properly configured to relay email via PHP script.

When you use PHP mail(), it does not use SMTP authentication to relay email. Following us the sample script to send email using PHP mail() function:

 

Posted in PHP and tagged .

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.