Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
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.)
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement