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

Sending Indy Email

edited July 2006 in Devices
I'm trying to get RB (10.03 B2) to send Email via the Delphi 6 (SP2) Indy
plugin.

Using the RB Email Demo (dm0100) both the send from preview and MAPI options
work as expected. The Indy option does not.

Using the same account information as my Outlook client I am able to
sucessfully "test" the connection from the connections screen but when I
send nothing goes and no exceptions or errors are generated. The Email
appears to go but never arrives at it's intended destination.

Any ideas how I can debug this futher?

Comments

  • edited July 2006
    Hi Jon,

    Try running your application from Delphi and set your debugger to stop on
    exceptions. This should give you a message that explains what is happening.
    We added an event for the next release of ReportBuilder that allows you to
    expose these exceptions and provide an error message.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2006
    Thanks Nico - I wasn't able to get an exception to display but I did get an
    Email to go via Indy by filling in ALL of the available fields. Perhaps my
    ISP requires a Reply To or Subject etc.

    Now, I'm trying to send a report via Indy within my app using the same info
    but what do I use for a filename? I'm using RB 10.03 server with a
    trsClientReport.


  • edited July 2006
    Hi Jon,

    The FileName of the emailed report can be defined by the
    EmailSettings.FileName property of the ClientReport. By default the file
    name is defined by the TppReport.PrinterSetup.DocumentName property. This
    would have to be altered in the actual template files you are loading into
    the client report object.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited July 2006
    Nico - Your help has been outstanding! I'm able to PDF Email reliably via
    Indy, trsClientReport, RB 10.03 B2 and Delphi 6 SP2.

    One more question (of course) - is there an OnSendEmail Event exposed or
    plans to do so? I'd like to stuff some values into the Email after the user
    hits SEND.

    Thanks again!


  • edited July 2006
    Hi Jon,

    Great, I'm glad you got it working. Currently there is not an OnSendEmail
    event available. Thank you for the suggestion however. I will add this to
    our future feature list 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 July 2006
    Hi Jon,

    There is no OnEmail event, however if you are looking to alter the email
    message sent, you can use EmailSettings.Body property of the report.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.