How to send report with IndiSMTPClient
Hi, i explain what i want to obtain :
Using Report Builder 11.07 and Delphi 2009.
When sending an email from the button inside the RB preview it happens
that the user's default e-mail client (thunderbird or outlook express)
is open and mail can be sent with report attached as pdf.
Instead i want to use the Indy Smtp Client component to catch the pdf
object as prepared from inside the report builder and send it from
inside my project without passing it to external email software.
Any idea of how to procede ?
Tanks in advance
Roberto
Using Report Builder 11.07 and Delphi 2009.
When sending an email from the button inside the RB preview it happens
that the user's default e-mail client (thunderbird or outlook express)
is open and mail can be sent with report attached as pdf.
Instead i want to use the Indy Smtp Client component to catch the pdf
object as prepared from inside the report builder and send it from
inside my project without passing it to external email software.
Any idea of how to procede ?
Tanks in advance
Roberto
This discussion has been closed.
Comments
Simply register the Indy email plugin by adding ppSMTPIndy10 to your
uses clause.
Once you do this you will also need to update the
EmailSettings.HostName, UserName, and Password properties to properly
connect to the SMTP server.
See demo 110 of the main reports demo for an example of this.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com