Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unattended Email
Message
De
01/08/2010 17:41:28
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Unattended Email
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01474820
Message ID:
01474820
Vues:
178
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform