Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unattended Email
Message
 
To
02/08/2010 02:12:40
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01474820
Message ID:
01474847
Views:
88
I wonder if this technique stil works for Window 7 since Outlook Express is no longer available.
\
>Check Message ID: 921370
>
>>Hi,
>>
>>following procedure works fine in XP (hanks to Ravi's article in Wiki
>>
>>
>>loMsg = Createobject("CDO.Message")
>>loMsg.Fields("Priority").Value = 1 && 1 = High, 0 = Normal	
>>loMsg.Fields.Update()	
>>
>>iConf = Createobject("CDO.Configuration")
>>Flds = iConf.Fields
>>With Flds
>>    .Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = ThisForm.nUsing
>>    .Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = ThisForm.cSMTPServer
>>    .Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = ThisForm.nPort
>>    .Update
>>ENDWITH
>>
>>With loMsg
>>    .Configuration = iConf
>>    .To = lcToAddress
>>    .From = ThisForm.cSender
>>    * Define other message parameters ....
>>     .Send
>>ENDWITH
>>
>>
>>
>>Now when use this in Win7 I will get an error SMTPServer and Sender address are not known, mail cannot be sent out.
>>
>>How to solve this?
>>
>>Regards,
>>
>>Koen
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform