Direct Mailer and inline images
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Commerce Server > Content Selection Framework > Direct Mailer and inline images




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Direct Mailer and inline images  
Angel


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-20-05 12:53 PM

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 */





[ Post a follow-up to this message ]



    Re: Direct Mailer and inline images  
Angel Anichin


Report This Message To A Moderator Edit/Delete Message


 
05-25-05 10: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-----





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:46 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register