Board index » delphi » Send e-mail with attachment

Send e-mail with attachment

Hello,

  how to send e-mail with attanchment, with default e-mail program (es.
Outlook.)

  Thanx

 

Re:Send e-mail with attachment


In article <3c8e4c74_1@dnews>, cappelle...@inwind.it says...

Quote
> Hello,

>   how to send e-mail with attanchment, with default e-mail program (es.
> Outlook.)

This has been asked around a million times. Next time
go to http://www.tamaracka.com and search the Borland groups first...

The keys are this...
(1) The attachment (&Attach) must be the last in the list
(2) The path & filename of the attachment must be in a separate set of
    quotes
(3) <SHOUT>Not all email clients accept the 'attach' command.</SHOUT>  
    However, I found it works with Outlook 97 & 2000.

Re:Send e-mail with attachment


Quote
"Cappelletto Gabriele" <cappelle...@inwind.it> wrote in message

news:3c8e4c74_1@dnews...

Quote
> Hello,

>   how to send e-mail with attanchment, with default e-mail program (es.
> Outlook.)

Aside : You can also use the Indy components to do this very easily without
requiring client side mail software.

Re:Send e-mail with attachment


I have found this solution:

ShellExecute(Handle, 'open',
'mailto:SomeN...@Somewhere.com?subject=MySubject&Attach=''C:\Attachment.txt'
'', nil, nil, SW_SHOW)

Thanx.

"Cappelletto Gabriele" <cappelle...@inwind.it> ha scritto nel messaggio
news:3c8e4c74_1@dnews...

Quote
> Hello,

>   how to send e-mail with attanchment, with default e-mail program (es.
> Outlook.)

>   Thanx

Re:Send e-mail with attachment


Note that this only works with Outlook 98 and 2000, but not with OE or Outlook
2002.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy  - Outlook, CDO
and MAPI Developer Tool

Quote
"Cappelletto Gabriele" <cappelle...@inwind.it> wrote in message

news:3c8edb84_2@dnews...
Quote
> I have found this solution:

> ShellExecute(Handle, 'open',
> 'mailto:SomeN...@Somewhere.com?subject=MySubject&Attach=''C:\Attachment.txt'
> '', nil, nil, SW_SHOW)

> Thanx.

> "Cappelletto Gabriele" <cappelle...@inwind.it> ha scritto nel messaggio
> news:3c8e4c74_1@dnews...
> > Hello,

> >   how to send e-mail with attanchment, with default e-mail program (es.
> > Outlook.)

> >   Thanx

Re:Send e-mail with attachment


You may use MAPI - check my freeware TMAPIMail component

--
With best regards, Mike Shkolnik
E-Mail: mshkol...@scalabium.com
        mshkol...@yahoo.com
WEB: http://www.scalabium.com

Cappelletto Gabriele <cappelle...@inwind.it> D???
???Y??:3c8e4c74_1@dnews...

Quote
> Hello,

>   how to send e-mail with attanchment, with default e-mail program (es.
> Outlook.)

>   Thanx

Re:Send e-mail with attachment


Yes, not work with Outlook 2002, I try to use TMAPIMail.

"Dmitry Streblechenko" <dmi...@dimastr.com> ha scritto nel messaggio
news:3c8ef6f9$1_1@dnews...

Quote
> Note that this only works with Outlook 98 and 2000, but not with OE or
Outlook
> 2002.

> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy  - Outlook, CDO
> and MAPI Developer Tool

> "Cappelletto Gabriele" <cappelle...@inwind.it> wrote in message
> news:3c8edb84_2@dnews...
> > I have found this solution:

> > ShellExecute(Handle, 'open',

'mailto:SomeN...@Somewhere.com?subject=MySubject&Attach=''C:\Attachment.txt'

- Show quoted text -

Quote
> > '', nil, nil, SW_SHOW)

> > Thanx.

> > "Cappelletto Gabriele" <cappelle...@inwind.it> ha scritto nel messaggio
> > news:3c8e4c74_1@dnews...
> > > Hello,

> > >   how to send e-mail with attanchment, with default e-mail program
(es.
> > > Outlook.)

> > >   Thanx

Re:Send e-mail with attachment


Thanks,
  I use this.

"Mike Shkolnik" <mshkol...@yahoo.com> ha scritto nel messaggio
news:3c8f0c6b_1@dnews...

Quote
> You may use MAPI - check my freeware TMAPIMail component

> --
> With best regards, Mike Shkolnik
> E-Mail: mshkol...@scalabium.com
>         mshkol...@yahoo.com
> WEB: http://www.scalabium.com

> Cappelletto Gabriele <cappelle...@inwind.it> D???
> ???Y??:3c8e4c74_1@dnews...
> > Hello,

> >   how to send e-mail with attanchment, with default e-mail program (es.
> > Outlook.)

> >   Thanx

Other Threads