This is a collection of really useful and handy PHP code snippets. You can share your code snippet through "Post a snippet" page if you think it may be useful for others. We keep adding new snippets all the time !
$To = 'email@example.com';
$Subject = 'Send Email';
$Message = 'This example demonstrates how you can send plain text email with PHP';
$Headers = "From: firstname.lastname@example.org rn" .
"Reply-To: email@example.com rn" .
"Content-type: text/html; charset=UTF-8 rn";
mail($To, $Subject, $Message, $Headers);
We've emailed your password. Check you email box.
To complete your registration, please check your mailbox for further instructions.