Content Selection Framework - Direct Mailer and inline images

This is Interesting: Free IT Magazines  
Home > Archive > Content Selection Framework > May 2005 > Direct Mailer and inline images





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Direct Mailer and inline images
Angel

2005-05-20, 7:53 am

We use Direct Mailer to send HTML emails. We use a normal html page as input
to the pipeline. As a result Direct Mailer produces emails with inline
images. This means that images are encoded and put inside the email message
and the Urls to images are changed. Example:

original image tag:

<img src="http://someserver/someimage.jpg" height="50" width="62">

is transformed to:

<img src="cid:004c01c556ea$118df8d2$_CDOSYS2.0" height="50" width="62">

and the imline image is:

------=_NextPart_000_00A0_01C55703.36EE4330
Content-Type: image/jpeg
Content-Transfer-Encoding: base64
Content-ID: <004c01c556ea$118df8d2$_CDOSYS2.0>
Content-Disposition: inline

/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAARgAA/+4AJkFkb2JlAGTAAAAAAQMA
CQkJCQgKCgwMDAwMCgwMDQ0MDBERERERFBQUFBQU
FBQUFAEEBQUIBwgPCgoPFA4ODhQUFBQUFBQU

The end result is that the email is displayed properly in Outlook but not in
web-based email clients like Hotmail, Yahoo, etc.

Is there a setting that can instruct DM not to produce emails with inline
images ?

Thanks.

Angel /* anichin[at]vip[dot]REMOVE_THIScom */
Angel Anichin

2005-05-25, 5:59 pm

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I found the answer here:

http://msdn.microsoft.com/library/e...pecomp_ivoy.asp

cdo_CreateMHTMLBodyFlags

[quote]

Optional. Responsible for controlling whether objects in the email
message are embedded or not. If this key is not set, objects in the
email are embedded. If the key is set to the appropriate value (31), the
direct mail message body contains the output of the target web page as is.

For example, if MailFormat is set to 3 (MHTML), and the
CreateMHTMLBodyFlags is set to 31, the mail message body snippets is:

<img src=www.microsoft.com/banner.jpg height=100 width=100>

If MailFormat is set to 3 (MHTML), and the CreateMHTMLBodyFlags is not
set, the mail message body snippets is:

<img src=cid:000101c1c44f$1bf3a256$_CDOSYS2.0 height=100 width=100 />

To set this key, you typically add a scriptor component preceding the
ComposeDMLMessage pipeline component to the current stage with the
following code:

function MSCSExecute(config, orderform, context, flags)
context("cdo_CreateMHTMLBodyFlags") = 31
MSCSExecute = 1
end function
sub MSCSOpen(config)
end sub
sub MSCSClose()
end sub

For more information about the CreateMHTMLBody method and the
CdoMHTMLFlags enumeration, see the Platform SDK in the MSDN Online
Library at http://go.microsoft.com/fwlink/?LinkId=5161.

[/quote]



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFClHzhjuKv2Eop8VMRAlf4AKCkdMN+Bhcy
Iy+G5uWZgDScj+JMXQCfYmly
e58l+2MbOZGg8s5C/17Np1o=
=arbV
-----END PGP SIGNATURE-----
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com