Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Email through VFP6
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00525908
Message ID:
00525922
Views:
15
This message has been marked as the solution to the initial question of the thread.
Hi!

You cannot force the mail sending through MAPI. If this is MS Outlook ( not Outlook Express!), you can instantiate the instance of Outlook by createobject('Outlook.Application'), thsi should force messages to be sent as soon as application start, if appropriate option in the profile is checked (that option do not works through MAPI). Unfortunately, with Outlook Express you cannot do that. If you;re working with Exchange Server 5.0 or hire, or using W2K, take a look to the CDO (Collaboration Data Objects). Version 2.x and hire have a method similar to 'Send/Receive'. CDO is well-described in the MSDN.

If you want just to send mail and forget, take a look to the wwIPStuff library at the www.west-wind.com, excellent class that allows sending of EMail through SMTP by as simple way as possible bypassing any profiles, logons ect.

HTH.

>Hello All;
>I recently downloaded Nogel Coates' email class and incorprated it into a form
>
>SET CLASSLIB TO OutlookMail
>oMail=CREATEOBJECT("cusMail")
>SET STEP ON
>omail.sendmail ('Hard coded',' ','hard coded','Test','This is a test')
>doevents
>release oMail
>
>Our current email system is MicroSoft Outlook. The message gets into the outbox but doesn't get sent!! What am I doing incorrectly and how can I push it out??
>
>Thanks
>
>Sandy
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform