Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Email
Message
De
12/10/2004 12:53:05
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Email
Divers
Thread ID:
00950714
Message ID:
00950735
Vues:
14
hi, Mahmood Ahmed
What version of vfp are you working with?
>Hi All:
> I am using the following code to send an attach file. I get an error. The error is "Class definition MapiSendMail is not found"
>
>What I am doing wrong?
>
>Thanks
>
>**My code below
>
>#DEFINE cret Chr(13)+Chr(10)
>#DEFINE dret cret+cret
>
>
>PRIVATE obj
>obj = CreateObject("MSMAPI.MapiSendMail") **I am getting an error here
>
>WITH obj
>
> * though the Sender object is implemented I never managed to make it
> * something else but the default address for the local email client
>
> .AddSender("Zahmed", "Zahmed@Nacs.Org")
>
> * add one or more recipients
> * note that the following ones will not work, just an example
>
> .AddRecipient("Zahmed Ahmed", "Zahmed@Nacs.Org")
>
> .MsgSubject = "Systrans Invoice"
>
> .MsgBody ="The Excel file attached with this email includes invoices which are in Texhibits and " + dret +;
> "Miscbill tables, but without a corresponding charge line in Systrans table."
>
> * adding file attachments
> * make sure that all files are available
>
> .AddAttachment("S:\Information Technology\Zack\Camex\Exl\Camex.xls")
> .SndMessage
>ENDWITH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform