Home > Archive > FoxPro Help and Support > December 2005 > Save a Attachment with OutlooK Express









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Save a Attachment with OutlooK Express
Nuno Fernandes

2005-11-29, 1:24 pm

Hello,

I am trying to write a program in VPF 9 that reads the inbox of Outlook
Express, looks for a specific subject and process an attachment file.

How can i do this? I know that using MAPI classes i can do what i want, but
i cannot fund examples.

Thanks in Advance
Jan Bucek

2005-11-30, 3:24 am

Go to my site http://www.bucek.info/default.htm - downloads and get app
Mail2Dbf - source code included. It can help you, it uses excellent
MAPImail class from www.nbcsoftware.com

HTH

Nuno Fernandes napsal(a):
> Hello,
>
> I am trying to write a program in VPF 9 that reads the inbox of Outlook
> Express, looks for a specific subject and process an attachment file.
>
> How can i do this? I know that using MAPI classes i can do what i want, but
> i cannot fund examples.
>
> Thanks in Advance

Nuno Fernandes

2005-11-30, 7:24 am

Thanks for your reply.

I download it and tryed to find the examples i need... but i couldn't find it.

How do you declare the majl class and use its methodes? Where is declared de
VFP MAPI Class from Nbc Software?

Sorry for my newbie questions...

Thanks for your help
NF


"Jan Bucek" wrote:

> Go to my site http://www.bucek.info/default.htm - downloads and get app
> Mail2Dbf - source code included. It can help you, it uses excellent
> MAPImail class from www.nbcsoftware.com
>
> HTH
>
> Nuno Fernandes napsal(a):
>

Jan Bucek

2005-11-30, 7:24 am

1. in app Mail2dbf are Properties and methods of MAPImail used in
Mail2dbf.prg in function DURCHFUEHREN

2. in app Mail2dbf is Emajl class declared on form Mail2dbf, but you can
declare it direct in code:
....
set CLASSLIB to MAPIMAIL additive
Emajl=CreateObject("cusmapi")
nOK=oEmajl.SendMail("", "", xcEmail, xcSubject, xcBody, xcAttach)
etc...

All properties and methods of MAPImail class are good described in docu
from nbcsoftware (samples included)

HTH

Nuno Fernandes napsal(a):[color=dar
kred]
> Thanks for your reply.
>
> I download it and tryed to find the examples i need... but i couldn't find it.
>
> How do you declare the majl class and use its methodes? Where is declared de
> VFP MAPI Class from Nbc Software?
>
> Sorry for my newbie questions...
>
> Thanks for your help
> NF
>
>
> "Jan Bucek" wrote:
>
>
Jan Bucek

2005-12-01, 3:24 am

Eeee, typo. It should be:
set CLASSLIB to MAPIMAIL additive
oEmajl=CreateObject(
"cusmapi")
nOK=oEmajl.SendMail("", "", xcEmail, xcSubject, xcBody, xcAttach)


Jan Bucek napsal(a):[color=dar
kred]
> 1. in app Mail2dbf are Properties and methods of MAPImail used in
> Mail2dbf.prg in function DURCHFUEHREN
>
> 2. in app Mail2dbf is Emajl class declared on form Mail2dbf, but you can
> declare it direct in code:
> ...
> set CLASSLIB to MAPIMAIL additive
> Emajl=CreateObject("cusmapi")
> nOK=oEmajl.SendMail("", "", xcEmail, xcSubject, xcBody, xcAttach)
> etc...
>
> All properties and methods of MAPImail class are good described in docu
> from nbcsoftware (samples included)
>
> HTH
>
> Nuno Fernandes napsal(a):
>
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com