Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Open default mail client for html formatted body

381 views
Skip to first unread message

Flyfish

unread,
Jul 8, 2009, 2:43:58 PM7/8/09
to
Hi,

trying to use MAPISendMail from MAPI32.DLL to open default mail client
for html formatted body with no success. It works perfectly for no
html formated body but for html formated it simply encodes all html
tags :(

Any help would be appreciated!

Christian ASTOR

unread,
Jul 8, 2009, 1:36:27 AM7/8/09
to
Flyfish wrote:

> trying to use MAPISendMail from MAPI32.DLL to open default mail client
> for html formatted body with no success. It works perfectly for no
> html formated body but for html formated it simply encodes all html
> tags :(

As KB268440 says, you should use others methods,
like CDO, with IMessage::put_HTMLBody()

Flyfish

unread,
Jul 9, 2009, 9:12:32 AM7/9/09
to
Hi Christian,

just wondering how Picassa guys did it - it works perfectly. Did they
use mapi or maybe outlook objects?

Unfortunately using CDO I cant popup mail client widnow...

Christian ASTOR

unread,
Jul 9, 2009, 2:06:20 PM7/9/09
to

If you're talking about Picasa 3 and [File][E-Mail...], it just uses
Simple MAPI and MAPISendMail() in plain text...

Flyfish

unread,
Jul 9, 2009, 7:59:33 PM7/9/09
to
Not exactly... check Tools->Options->Email->Send inline photos and
captions (Outlook only)
Creates html formated mail in Outlook

Christian ASTOR

unread,
Jul 10, 2009, 11:56:49 AM7/10/09
to
On 10 juil, 01:59, Flyfish <cele...@gmail.com> wrote:
> Not exactly... check Tools->Options->Email->Send inline photos and
> captions (Outlook only) Creates html formated mail in Outlook

It copies the HTML to Clipboard (CFSTR_HTML format), then calls
MAPISendMail() and paste it.

Flyfish

unread,
Jul 10, 2009, 12:56:58 PM7/10/09
to
calling MAPISendMail() displays modal window (OE)... no paste is
possible. And it is modal in Picassa...

Jeff

unread,
Jul 9, 2009, 3:11:04 PM7/9/09
to
"Flyfish" <cel...@gmail.com> a �crit dans le message de news:
8e9194e8-19ef-4910...@k30g2000yqf.googlegroups.com...

> calling MAPISendMail() displays modal window (OE)... no paste is
> possible. And it is modal in Picassa...

MAPISendMail() with MAPI_DIALOG displays the "New mail " dialog and allows
to modify all fields.


Christian ASTOR

unread,
Jul 9, 2009, 5:52:21 PM7/9/09
to
Flyfish wrote:
> calling MAPISendMail() displays modal window (OE)... no paste is
> possible. And it is modal in Picassa...

MAPISendMail() with MAPI_LOGON_UI | MAPI_DIALOG flags and an empty body
displays the HTML attachment in the body..

Flyfish

unread,
Jul 13, 2009, 4:35:15 PM7/13/09
to
Hi Christian,

it works! Thank you very much!

0 new messages