Welcome to DevelNet, a code gallery for creating, saving and sharing all kinds of code snippets.

PHP — Send Email with php

Posted On: Wednesday, January 14, 2015 at 7:35 PM

Send emails with php mail()
$To = 'recepient@yourdomain.com';
$Subject = 'Send Email';
$Message = 'This example demonstrates how you can send plain text email with PHP';
$Headers = "From: sender@yourdomain.com rn" .
"Reply-To: sender@yourdomain.com rn" .
"Content-type: text/html; charset=UTF-8 rn";

mail($To, $Subject, $Message, $Headers);