Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I can't send e-mail programmatically
Message
 
To
08/03/2001 15:32:08
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00483267
Message ID:
00483311
Views:
24
Hi Terri,

That's what I thought. I ran into a similar issue and switched to using CDONTS instead. Here's some sample code:

objMail = CreateObject("CDONTS.Newmail")
objMail.MailFormat = cdoMailFormatMIME
objMail.From = "Dubya@whitehouse.gov"
objMail.To = lcEmail
objMail.bcc = "JohnDoe@yippee.com"
objMail.Value("Reply-To") = "JaneDoe@yappi.com"
objMail.Importance = 2

objMail.Subject = "Subject Line Here"
objMail.Body = "Blah blah blah..."

objMail.AttachFile(lcFileName, "File Caption goes here")

objMail.Send



>I'm using Microsoft Outlook. I've coded the necessary parameters (userid,pw,recipient, msg) in my Foxpro program and then issue a send. However, the userid and password is oignored in favor of the current logged on id. When i'm logged off, the Outlook account can not be found (what the error message says).
kenweber
GCom2 Solutions
Microsoft Certified Professional

Previous
Reply
Map
View

Click here to load this message in the networking platform