Jump to content

Mail en ligne de commande


Recommended Posts

Salut tt le monde

voilà j'ai un GRRROOOSSS problème...

Je suis sur un serveur win 2003 et je dois pouvoir envoyer

des mails en ligne de commande : interdiction d'utiliser outlook...ni shareware ou autre...

Je cherche donc une solution en passant par Telnet

ou un script windows mais je n'y connait RIEN !!!

Quelqu'un a t'il une solution à me proposer ???

Merci à tous ceux qui me viendront à l'aide... et aux autres...

Link to comment
Share on other sites

C'est pas un problème!

J'ai réussi facilement à passer via Exchange sans compte!

Look at this:

Option Explicit

Dim objEmail

Set objEmail= CreateObject("CDO.Message")

With objEmail
 .From = "bidon@grosland.com"
 .To = "john.doe@nomansland.com"
 .Subject = "Aucun" 
 .Textbody = "See U next time"
 .Configuration.Fields.Item _
     ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
 .Configuration.Fields.Item _
     ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "DNS d'exchange" 
 .Configuration.Fields.Item _
 	("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
 .Configuration.Fields.Update
 .Send
End With

Cuilà c'est la version via CDO!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...