Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending email from fox
Message
De
12/11/2002 09:52:42
 
 
À
12/11/2002 09:35:11
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00721557
Message ID:
00721578
Vues:
8
>I have a problem with sending email.
>i have code that i worked with about a year ago (on another computer) and can not get it to work now.
>
>mailsession = CREATEOBJECT("mapi.session")
>mailsession.Logon(myusername)
>
>mailmessage = mailsession.Outbox.Messages.Add
>mailmessage.Subject = &mysubject
>mailmessage.Text = getmytext
>mailmessage.Attachments.Add(myreportname, 0, 1, &getfile)
>
>messagerecp = objMessage.Recipients.Add(recpadd) && who it's to
>mailmessage.Send
>mailsession.Logoff
>
>this line gives me an error class definition mapi.session is not found.
>i do not believe i used any fox classes before with this.
>

The error indicates that you don't have a MAPI-compliant email program installed on the PC.
>any suggestions would be great.
>thank you.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform