Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I can't send e-mail programmatically
Message
 
À
08/03/2001 15:32:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00483267
Message ID:
00483311
Vues:
25
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

Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform