Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why do I need to open outlook to send e-mail, part II ?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00231324
Message ID:
00231738
Views:
20
>Luis,
>
>In Outlook Express there is an option for "Send message immediately" Outlook shoud have something similar. Also make sure it is set to connect to the net automatically if it doesn't find a running connection.
>
>>Hello everybody,
>> I have asked this question before, maybe now I got lucky now?
>> When I send e-mail from within Visual Foxpro 5.0a, the recipient
>>does not get the e-mail until I open "my" outlook. Why is that ?,
>> In other words, I still need to open outlook to actually send the
>>mail.
>> Here a sample of one of the codes that I have tried :
>>
>> loMAPISession=CREATEOBJECT("MSMAPI.MAPISession.1") && Create the MAPI object.
>> loMAPISession.UserName="Windows Messaging"
>> loMAPISession.SignOn()
>> loMAPIMessage=CREATEOBJECT("MSMAPI.MAPIMessages.1")
>> WITH loMAPIMessage
>> .SessionID=loMAPISession.SessionID
>> .Compose()
>> .MsgIndex=-1
>> .MsgNoteText="Hi with ole"
>> .MsgSubject="Using MAPI for e-mail"
>> .RecipDisplayName=lcMyEmailAddress
>> .Send(0)
>> ENDWITH
>> loMAPISession.SignOff()
>>
>> What am I missing ?
>> =THIS.Thanks("in advance")

I *think* that there are other settings for the .send, something like send(1,0,1) but can't for the life of me remember where I saw this.
Previous
Reply
Map
View

Click here to load this message in the networking platform