Re: Re: PHP Mail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ken,

Try below code, i think that it must solve urs problem

<?php

$to = "amitmmc1@xxxxxxxxx";
$subject = "HTML email";

$message = "
<html>
<head>
<title>HTML email</title>
</head>
<body>
<p>This email contains HTML Tags!</p>
<table>
<tr>
<th>Firstname</th>
<th>Lastname</th>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
</tr>
</table>
</body>
</html>
";

// Always set content-type when sending HTML email
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";

// More headers
$headers .= 'From: <"amitmmc1@xxxxxxxxx>' . "\r\n";
$headers .= 'Cc: "amitmmc1@xxxxxxxxx' . "\r\n";

$message = wordwrap($message,70);
mail($to,$subject,$message,$headers);
?>


With thanks,

AMIT BAJAJ 

--- On Mon, 12/8/08, Ken <ken.poyser@xxxxxxxxxxx> wrote:
From: Ken <ken.poyser@xxxxxxxxxxx>
Subject:  Re: PHP Mail
To: php-objects@xxxxxxxxxxxxxxx
Date: Monday, December 8, 2008, 8:40 PM










    
            I found out that   I needed to use the   wordwrap() function

and it works just fine now



Sorry I didn't back and post something earlier

once I found out what the deal was



--- In php-objects@ yahoogroups. com, E.Fransiscus <efransiscus@ ...> 

wrote:

>

> Can you give us the code?

>




      

    
    
	
	 
	
	








	


	
	


      

[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux