ESBPCS for VCL
ExeMailTo
Thread Starter: John Eastman Started: 3/18/2008 2:00 AM UTC
Replies: 1
ExeMailTo
Hello

I use the ESBPCSExe unit to create an E-mail message in the default E-mail handler and insert a recipient address - see code below
      ESBPCSExe.ExeMailTo(DataPatients.adsTablePatients.FieldByName('E-MailAddress').AsString);

My question is whether there is a procedure to attache a file to the E-mail message created above

something like        ESBPCSExe.ExeMailAttachment(FileLocation.AsString);

TIE

John
RE: ExeMailTo
John,

We don't currently have a method that does Mail Attachments - when looking
at this a few years ago, it seemed that the success of a methodology
depended on what the default Mail System was - plus it really needed MAPI
rather than ShellExecute (which is what lies beneath the routine you
mentioned).

The following Freeware (with Sources) may help but I haven't tested it:

http://www.scalabium.com/mapimail.htm  

I believe you should also be able to do this with Indy which is bundled with
recent Delphi releases.

Hth


Glenn Crouch, mailto:glenn@esbconsult.com
ESB Consultancy, http://www.esbconsult.com
Home of ESBPCS, ESB Calculators, ESBStats and ESBPDF Analysis
Kalgoorlie-Boulder, Western Australia