Sending Report by mail using smtp configuration
I'm trying to send a report in raf format automatically by e-mail.
I've configured every property I believe is necessary:
Body, FileName, FromAddress, HostAddress, Password, Recipients, Subject
and UserName.
Also, I've unchecked both PreviewInEmailClient and ShowEmailDialog.
The e-mail is sent to all the recipients, but during the job, the
default e-mail client (Microsoft Outlook or Mozzila Thunderbird) is always
opened with an empty message. If there's no client installed, then the
report is not sent.
What am I supposed to do in order to prevent the Microsoft Outlook
screen from being shown?
I'm using ReportBuilder Enterprise 10.09.
Thanks in advance!
Roberto Elias Silva
--- posted by geoForum on http://delphi.newswhat.com
I've configured every property I believe is necessary:
Body, FileName, FromAddress, HostAddress, Password, Recipients, Subject
and UserName.
Also, I've unchecked both PreviewInEmailClient and ShowEmailDialog.
The e-mail is sent to all the recipients, but during the job, the
default e-mail client (Microsoft Outlook or Mozzila Thunderbird) is always
opened with an empty message. If there's no client installed, then the
report is not sent.
What am I supposed to do in order to prevent the Microsoft Outlook
screen from being shown?
I'm using ReportBuilder Enterprise 10.09.
Thanks in advance!
Roberto Elias Silva
--- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.
Comments
In my testing with the MAPI (default) plugin and RB 10.09, sending an email
with the PreviewInEmailClient property set to False shows a warning message
that an application is about to use Outlook then places the message in the
outbox (which is later sent once Outlook is actually opened).
The typical way to silently send an email message is to use the Indy or
Synapse plugins. These will bypass your email client and access your email
server directly. See the email demo (dm110.pas) located in the
\RBuilder\Demos\1. Reports\.. directory for an example of this.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com