Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Email
Message
From
12/10/2004 12:53:05
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Email
Miscellaneous
Thread ID:
00950714
Message ID:
00950735
Views:
13
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform