April, 2010

Quick Search

Send HTML formatted mail in php

April 9th, 2010 by admin
12 comments »

< ? php
//define the receiver of the email
$to = ‘youremail@testmail.com’;
//define the subject of the email
$subject = ‘Test HTML email’;
//create a boundary string. It must be unique
//so we use the MD5 algorithm to generate a random hash
$random_hash = md5(date(‘r’, time()));
//define the headers we want passed. Note that they are separated with … Read More

Posted in Email
12 comments »