How to send html email with php Windows XP

Asked By 20 points N/A Posted on -

I tried html emails before and the I want them to look nicer especially to my important clients.  I want to how to send html email with PHP, kindly include all the possible ways or applications needed by this. my OS is windows XP.

Answered By 0 points N/A #149949

How to send html email with php Windows XP


You can send HTML mail with the use of PHP you can do this is calling mail function with an extra header below is the following example code.


$fromAddr = '[email protected]'; // the address to show in From field.

$recipientAddr = '[email protected]';

$subjectStr = 'Thank You';

$mailBodyText = <<<HHHHHHHHHHHHHH

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">



<meta http-equiv="Content-Type" content="text/html;charset=utf-8">

<title>Thank You</title>




<b>Your login is:</b> {$_POST['login']}<br>

<b>Password:</b> {$_POST['password']}<br>





$headers= <<<TTTTTTTTTTTT

From: $fromAddr

MIME-Version: 1.0

Content-Type: text/html;


mail( $recipientAddr , $subjectStr , $mailBodyText, $headers);


 Note <<<HHHHHHHHHHHHHH is called hero codec

Login/Register to Answer

Related Questions