Re: Gnostice eDoc email option

From: Girish Patil \(Gnostice\) (girish_at_gnostice.com)
Date: 05/13/04


Date: Thu, 13 May 2004 18:32:16 +0530

Hi Charles,

Sorry if we did not explain that well.

The confusion I think is because there are two options related to emailing with
Indy.

You need to enable the first define as well:

{---- Email using Indy units}
{$DEFINE EmailWithIndy} <---------

Now recompile the packages. Instructions in Help topic:
Re-Compiling/Re-Installing - Registered Edition

Then program the OnEmail event:
FAQ: 22) How do I use EmailAfterCreate to email the generated document?

procedure TForm1.gtPDFEngine1EMail(Sender: TgtCustomDocumentEngine; EMailInfo:
TgtEMailInfo; var Continue, CancelEmail: Boolean);
begin
    EMailInfo.Host := 'mail.smtp.yourdomain.com'; { your mail server name }
    EMailInfo.UserID := 'userid'; { your account id }
    EMailInfo.Password := 'password';
    EMailInfo.Body.Add('<put message text here>');
    EMailInfo.FromAddress := 'userid@yourdomain.com';
    EMailInfo.Subject := '<put message subject here>';
    { Multiple recipients can be provided in a single string
      separated by a semi-colon (;) or by calling the Add method
      again for each recipient }
    EMailInfo.RecipientList.Add('someone@thierdomain.com');
    // EMailInfo.CCList.Add('<Carbon Copy Addresses>');
    // EMailInfo.BCCList.Add('<Blind Carbon Copy Addresses>');
end;

We are having the help file updated to contain more detailed instructions. We'll
be releasing it soon.

-- 
Girish Patil
Gnostice Information Technologies www.gnostice.com
---------------------------------------------------------------------
Gnostice eDocEngine (http://www.gnostice.com/edoc_engine.asp) -
Electronic document creation, PDF eForms and report export components
Gnostice PDFtoolkit (http://www.gnostice.com/pdftoolkit.asp) -
PDF document management and PDF eForms processing components
---------------------------------------------------------------------
"Charles Collins" <ccol@taxidivision.com> wrote in message
news:40a27155$1@newsgroups.borland.com...
> Could anyone give me a quick example of implementing the e-Mail
> functionality for this 3rd party product?
>
> The developer's support says it is detailed in the FAQ, but it isn't, and
> the help file is another one of those read-the-source, we'll fix it later,
> generated verbage sheets.  I don't mean to rant.
>
> The interface to the report writer works very well.  I just don't understand
> why an option is included that requires rocket science to use.
>
> The FAQ tells me to enable the define line for email, and recompile.  OK,
> done.  Now what?  I enabled email for Indy 9 and above.  What do I need from
> the Indy component tab, and how do I tie it in?  If nothing is needed, then
> what do I do next?
>
> I've recompiled their demo, but it errors out when I enable email support
> and the code, since it errors, really tells me nothing.
>
> Does anyone here have instructions for those of us (i.e. myself) that are
> not intuitive, but require step by step help when learning something new?
>
> Thanks, any help is great!
>
>