New Blog Post: PDF/A and Metadata

Email failure.

edited February 2011 in End User
Hi.

I get an error when i attempt to send a mail-report as pdf. The error is
"Undefined failure". The report pdf is created. I have no problem sending
mail from this pc using outlook. Any idea on what the problem might be? I
use RADStudio 2009 and RB 11.0.8.311.

Regards,
Terje Syversen

Comments

  • edited February 2011
    Hi Terje,

    Are you able to recreate this issue with the email example (Demo 110)?
    Which email plugin are you using? Is Outlook open when you are trying to
    send? Are you sending from an app running inside the IDE?

    Please provide more information about how your application is designed and
    the process you are taking to send the email.



    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2011
    Hi Nico,

    I have tried the demo and the MAPI(Default email client) works well when
    Outlook is closed.
    Indy(Built in email client) does not give any error but it does not send any
    mail either. I have included
    this event in my code " TppEmail(ppReport1.Email).SMTP.OnEmailError".
    Email from preview works when Outlook is closed.
    I load my reports from database into the TReport. I set the emailsettings
    properties after the report
    is loaded. In my applicationcode i have not included this "
    TppSMTPPlugIn.RegisterClass(TppSMTPMapi);"
    Can this be the problem?

    Is there a way i can send email with Outlook open?

    Best regards,
    Terje

  • edited February 2011
    The two latest Outlook versions do not support MAPI. You will have to
    use the ppSMTPOutlook plugin.

    Best regards,
    Geerten Doornenbal

    Op 21-2-2011 9:42, Terje Syversen schreef:
  • edited February 2011
    Hi Terje,

    Take a look at the following article on sending emails with Outlook open.

    http://www.digital-metaphors.com/rbWiki/Output/Email/Troubleshooting..._Cannot_Preview_Email



    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2011
    I believe this is incorrect. We currently have either Outlook 2010 or
    Outlook 2007 installed on our machines and the MAPI plugin functions
    correctly.

    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2011
    Hi Nico!

    That did it for me. My application run as admin and outlook run as user. I
    set outlook to run as admin
    and it works. Another problem. When i set
    EmailSettings.PreviewInEmailClient=false for a "silent mail"
    i get this outlook message that says " a program is trying to send a message
    on your behalf etc.". Is there
    a way to avoid this message?

    Regards,
    Terje

  • edited February 2011
    Hi Terje,

    Unfortunately using Simple MAPI (the version included with Delphi), it is
    not possible to remove this message. Microsoft's rules, not ours.

    You currently have two options for working around the limitation.

    1. Use a direct email utility such as Indy or Synapse. Both of these
    plugins connect directly to your email server and send messages silently.

    2. Use the Extended MAPI library. ReportBuilder does not currently support
    Extended MAPI but it is possible to use it with the EasyMapi plugin
    (ppSMTPEasyMapi.pas) and the EasyMapi product. http://www.rapware.nl

    We plan to research and possibly add Extended MAPI support for a later
    release of ReportBuilder.


    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited February 2011
    This is a multi-part message in MIME format.
This discussion has been closed.