Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sendmail
Message
 
 
À
01/07/2002 21:42:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00673911
Message ID:
00674423
Vues:
27
Thanks Tom,
I'll pass this message on to the Network Administrator.


>This is NT4? If IIS is installed, the SMTP service can be installed as an option. Once the SMTP service is installed and properly configured (probably setting the "Smart Host" property to point to the server that normally handles SMTP mail on your network), you can send mail with three lines of code:
>
>
>oSMTP = CREATEOBJECT("cdonts.NewMail")
>oSMTP.Send("Reply_addr@domain.com", "Recipient_Addr@domain.com", ;
>     "This is the subject!", ;
>     "This is the body of the message.", ;
>     1)
>RELEASE oSMTP
>
>
>The last parameter is the Importance. 0=Low, 1=Norm, 2=High.
>
>At least, this works fine on the NT4 server in my office. :) If you upgrade the server to Win2K or later, I believe you'll have to switch to using CDOSYS instead of CDONTS, and the object models are somewhat different.
>
>There's lots of info on CDONTS up on http://msdn.microsoft.com/library/default.asp
>
>-Tom
>
>
>[Disclaimer: This post is provided "AS-IS" with no warranties, and convers no rights.]
Edgar L. Bolton, B.S. B.B.A.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform