We do not allow sending emails through the anonymous mail() function due to security reasons. Hence, you will need to send an email through SMTP authentication from your script. You can consider using the phpmailer script for sending out emails through smtp authentication. It is available for download at below URI: https://github.com/PHPMailer/PHPMailer