Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send/Receive in MS Outlook
Message
 
To
24/04/2002 17:31:26
Robert Lee
Swiderski Electronics, Inc.
Carol Stream, Illinois, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00648404
Message ID:
00650469
Views:
31
Robert,

Thanks for the suggestion. I didn't know about CDO. Following your code sample, I easily created and sent a mail message. A few minutes later, it arrived in my inbox.

I read about CDO in the MSDN Library (Oct 2001), but I'm not sure if it will work on our customers PC's. Sounds like it requires Windows NT Server, Windows 2000 Server, or IIS 4.0. Do you know if your example will work under Windows 98? Would my application have to install the CDONTS.DLL or other components?

---Thomas

>You might want to use the Collaboration Data Objects instead.
>omsg = createobject("cdo.message")
>omsg.From = "sender's email address goes here"
>omsg.Subject = "The subject of your e-mail"
>omsg.To = "Recipient's email address"
>omsg.TextBody = "The body of your Text goes here"
>omsg.AddAttachment("file:///"+"fullpath of file attachment")
>omsg.Send
>
>Let me know if this worked out for you.
>
>Robert Lee
Thomas M. Lamm
Bradbury & Associates
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform