Sending Indy Email
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?
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?
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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.
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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!
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com