General information
Category:
COM/DCOM and OLE Automation
Title:
How to send attachments
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only