Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending E-mail
Message
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
Miscellaneous
Thread ID:
00460461
Message ID:
00460927
Views:
13
If you don't want to require that your users have Outlook, you could use the MAPI method, which works with Outlook and most other Email programs too:
oSession = CREATEOBJECT("MSMapi.MapiSession")
osession.logonui = .t.
osession.signon
omessage = CREATEOBJECT("MSMapi.MapiMessages")
omessage.sessionid=osession.sessionid
oMessage.MsgIndex = -1 && Create New
oMessage.RecipAddress = "you@there.com"
oMessage.Send( 1 ) && 0/1= whether to show UI.

>You can use outlok application
>
>** Since Outlook already knows about your mail setup, it requires less information
>**********************
>oOutlook = CREATE ("Outlook.Application")
>oMail = oOutlook.createitem(0)
>omail.Body = "This is a test"
>omail.Recipients.Add ( "ismamokan@nro12" )
>omail.Subject = "test"
>omail.Send
>omail = .NULL.
>RELEASE omail
>oOutlook = .NULL.
>RELEASE oOutlook
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform