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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Email message with attachment

Status
Not open for further replies.

budz

Programmer
May 3, 2001
17
Is there a way that I can save the attachment of email message using vfp? Thanks :cool:
 
HI
The attachments can be of various types. So this is not an easy solution. However, I am posting this based on your earlier threads that you are sending attachments using vfp in the form of text files.

myTextFile = GETFILE() .. or LOCFILE() .. to get the file name.. with the '.txt' extension.
Then to read this as memo field..

** FILETOSTR("mytxt.txt") where mytxt.txt is the actual file name .. or if you use variable for this as above

myMemo = FILETOSTR(myTextFile)

Now REPLACE myMemoField WITH myMemo && variable
OR
REPLACE myMemoField WITH FILETOSTR(myTextFile)

Remember to add the file path required for the text file.

Hope this idea helps you :)
ramani :-9
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
Is there a way to save an attachment from a message in my inbox to my hard drive?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top