This is a sample script where you can see how this is accomplished.
It is assumed that not authentification is required.
var msg = new ActiveXObject("CDO.Message");
var config = new ActiveXObject("CDO.Configuration");
config.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2;
config.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "wwsmtp01.ww-intern.de";
config.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25;
config.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 0;
config.Fields.Update();
msg.Configuration=config;
msg.From="andreas.knees@ww-informatik.de";
msg.To="martin.niedenzu@ww-informatik.de";
msg.Subject="Enter Subject Here";
msg.TextBody = meinMailInhalt;
msg.Send();;
msg=null;
config=null;
Keine Kommentare:
Kommentar veröffentlichen