Page 1 of 1

Table in Email Message with PHP

Posted: Thu Sep 17, 2009 12:37 am
by khurram_micro
Hi friends
I want to send email with the help of PHP but i want to create a proper Excel Sheet with in email message and then i will send .. Can any one will help me how to code or from where to get help i tried alot but :banghead:
Thanx in advance for all help

Re: Table in Email Message with PHP

Posted: Thu Sep 17, 2009 12:55 am
by amargharat
You have to send mail by setting its mime type as html, so that whatever your html about table will be converted into table.

you have set headers for that in your mail functions.

Code: Select all

$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";