Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unattended Email
Message
From
01/08/2010 17:41:28
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Unattended Email
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01474820
Message ID:
01474820
Views:
177
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
Next
Reply
Map
View

Click here to load this message in the networking platform