Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Emailing attachments
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00472656
Message ID:
00472698
Vues:
40
Hi!
See sample code below...
local loMail
m.loMail = CREATEOBJECT("wwIPStuff")
m.loMail.cMailServer	= ... && mail server host name or IP address string
m.loMail.cSenderName	= ... && Mail from name
m.loMail.cSenderEmail	= ... && Mail from email address
m.loMail.cCCList        = ... && comma-separated list of CC email addresses
m.loMail.cBCCList	= ... && comma-separated list of BCC email addresses
m.loMail.cRecipient	= ... && comma-separated list of 'TO' email addresses (Recipient addresses list)
m.loMail.cSubject	= ... && Subject of letter
m.loMail.cMessage	= && Message body
m.loMail.cContentType	= 'text/plain' && did not ever make difference...?
m.loMail.cAttachment    = ... && List of attachment files separated by ';' (or ',' if not work),
        && all files from list must exist and available to open (opened table will not be sent).
        && note that you require latest wwIPStuff libraries (include DLL) to send multiple attachments.
m.lSendResult = m.loMail.SendMail()
if !m.lSendResult
=Messagebox("Mail was not sent. Mail server return following message:" + chr(13) + m.loMail.cErrorMsg)
endif
Release m.loMail

RETURN m.lSendResult
>I am using WWIPSTUFF to send email.
>I have no problem sending text files as attachments.
>However if I try to send a VFP file as an attachment the attachment file gets ignored.
>Also there is a memo file in the VFP file so I need to send both the .dbf file
>and the .fpt file.
>Is it possible to send 2 attachments in the same email.
>Thanks for your help in advance.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform