Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Email from Foxpro Application

Status
Not open for further replies.

1010ash1957

Programmer
Jan 25, 2007
22
HK
We have an Foxpro for Windows V2.6a application and creating a text file, saving it in a specific folder. Our client is composing email message using Outlook / outlook Express and than they locate this folder , file , attaches it and send by email.

is it possible that we can do the above composing, attaching the created file within the Foxpro Application.

Please help and we really thanks in advance.

 
For FoxWin2.6, I use Eudora.
You make a Text File, Call the Eudora Interface, Your done.
Take you about 1 hour to intergrate it code wise.


David W. Grewe Dave
 
HI Dave,

Thanks for your suggestion however is there any interface available for MS Outlook or Outlook Express.

 
Due To Outlooks ability to pass viruses, I avoid it like the plague,
So maybe someone else can answer.
Sorry.



David W. Grewe Dave
 
There are several FAQ's on the subject in the VFP area, Maybe you can adapt them for 2.6.

David W. Grewe Dave
 
Better Yet, Try this one here in this forum
thread182-1202776


David W. Grewe Dave
 
I'm using a command-line POSTIE utility ( All the composing is done by the making and running a batch file, no Outlook or any other program is involved.
 
It's easy to do to a certain point -

cURL = 'chris@domain.co.uk'
cSubj = 'This%20is%20the%20subject'

Note that in the subject the following have got to be translated:

Space ( ) %20
Comma (,) %2C
Question mark (?) %3F
Period (.) %2E
Exclamation point (!) %21
Colon :)) %3A
Semicolon (;) %3B
Line feed %0A
Line break (ENTER key) %0D

Then execute using file association:

cParam = 'mailto:' + cURL + '?subject=' + cSubj
RUN /n7 cmd /c start &cParam

This works perfectly but I'm pulling my hair out trying to include a file attachment. Reading the MS Knowledge Base it should be a parameter starting with & but I can't find the format - I've tried '&attach', '&attachment','&file','&post' and none work. The parameter to add the body to the message is '&body' but I have as many problems with that.

Does anybody have any better ideas?
Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top