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

How to send report with IndiSMTPClient

edited September 2013 in General
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

Comments

  • edited September 2013
    Hi Roberto,

    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.

    Best Regards,

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