Click to See Complete Forum and Search --> : Mhtml


squishy
02-27-2006, 04:12 AM
I am trying to learn to embed html inside of an email... I dont know how. Can anyone tell me a concise, easy to understand resource? or at least tell me the quirks and rules that make it different from regular HTML... What do I need to do to make it work? I keep trying to write html inside of a regular email template... it doesnt get processed properly...

TiGGi
02-27-2006, 08:51 AM
I don't know how are you trying to do this but when sendig html mail you pretty much build it as html file with no body and head tags. So just start with your content

<table width="620" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="90">

oh and you can include your css before that if you need to
<link href="new.css" rel="stylesheet" type="text/css">

If you're trying to do something else please explain bit more

felgall
02-27-2006, 03:32 PM
You will have to use <style></style> around embedded style info as new.css won't exist in their email folder.

Use Content-type: text/html; to define the content as HTML.

Use Content-Type: multipart/related; to embed images into the email itself as linked images are blocked by most email programs as the spammers use them to confirm email addresses.