Forum Moderators: coopster

Message Too Old, No Replies

error in sending html page with attachment in mail

error in sending html page with attachment in mail

         

vivek avasthi

6:25 pm on Aug 9, 2006 (gmt 0)

10+ Year Member



hi ,

i am sending a mail with attachment. the text mail with attachment is going in rght way ...but when i try to send a HTML Mail(text coming from a HTML Editor) with attachment the mail .. i got some kind of error ... the mail and attachment goes .. but the problem is the HTml page display as its is ...like its display as source code whatever a typed in editor..

like if i have typed
:
<table>
<tr>
<td><b>hai this is vivek here </b></td>
<td><b>hai how r u</b></td>
<td><b>hai sir good morning</b></td>
</tr>
</table>
</HTML>

now when i send mail it displayed above code as its is...

help me...

barns101

6:41 pm on Aug 9, 2006 (gmt 0)

10+ Year Member



You need to make sure that you send a content-type header set to text/html.

vivek avasthi

6:58 pm on Aug 9, 2006 (gmt 0)

10+ Year Member



if i send header type text/html then it create problem in ttachment...so i am sending heder :
Content-Type:"=>"multipart/mixed;\n\tboundary=\"----=_NextPart_000_0001_00000001.00000001\"",

barns101

10:41 pm on Aug 9, 2006 (gmt 0)

10+ Year Member



OK, in the part that contains your text you want to have a content-type similar to this:

Content-Type: text/html; charset="iso-8859-1"

You can choose a different character set if you like.