Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to send attachments
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
How to send attachments
Miscellaneous
Thread ID:
00940547
Message ID:
00940547
Views:
61
Hi all,
I'm using Winsock in WS2_32.DLL to send emails and works so far so good.
It is simple and very convenient to use in VFP that no extra setup
required on user's machine. But this is only good for text message mail.
I can't send change its property to send HTML mail and also attachments.
Do you know to modify or any other better tools? Pls help. Thanks!

Below are some parts of codes of this control:

THIS.snd("HELO", .T.)
THIS.snd("MAIL FROM:" + THIS.sender, .T.)
THIS.snd("RCPT TO:" + THIS.recipient, .T.)
THIS.snd("DATA", .T.)
THIS.snd("Date: " + SendDate(), .T.)
THIS.snd("From: " + THIS.sendername + " " + THIS.sender)
THIS.snd("To: " + THIS.recipientname + " " + THIS.recipient)
THIS.snd("Subject: " + THIS.subject)
THIS.snd("")
THIS.snd(THIS.body)
THIS.snd(".", .T.)
THIS.snd("QUIT", .T.)
Next
Reply
Map
View

Click here to load this message in the networking platform