Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

mapi w/o recipient

edited November 2007 in General
I'm using Outlook 2002 as my mapi client and testing the SendMail of a PDF
report.

Everything works fine if I programatically stuff a recipient's email address
into EmailSettings. Outlook previews the email perfectly with the subject
line completed, email body completed and addressed to the email recipient.

I'd like to pass NO RECIPIENT email address and allow the user to specify it
when it is previewed, but the preview never gets displayed. How do I launch
the outlook preview without specifing a recipient email address?

Thanks
JimG

Comments

  • edited November 2007
    Hi Jim,

    In my testing with Outlook 2007 and 2003, the email client came up with no
    recipients added using the default MAPI plugin. My initial guess would be
    that this is an Outlook 2002 issue. You might try using the Outlook plugin
    (add ppSMTPOutlook to your uses clause) and see if that fixes the problem.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2007
    I solved the problem by not calling :

    ActiveReport.EmailSettings.Recipients.Add('');

    I will also check to make sure the CC and BCC are not blank before adding
    them as well.

    On another note, is there a way to FORCE mapi to set the body content to
    PR_RTF_COMPRESSED?

    Thanks
    JimG

  • edited November 2007
    Hi Jim,

    Unfortunately it is not possible to read from or write data to the
    PR_RTF_COMPRESSED property using Simple MAPI (see the article below). I
    have read a few articles stating that it is possible with the use of the
    Extended MAPI library. This is something we will consider researching and
    enhancing for a later release of ReportBuilder.

    http://support.microsoft.com/kb/268440

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2007
    Thanks Nick,
    That's confirms what I've read, too. One of my customers has LotusNotes
    with the mapi extension installed on their server. But according to IBM, it
    only supports simple mapi. I just wanted to make sure I wasn't missing what
    would "wow" them.

    Good day.
    JimG

This discussion has been closed.