Category: Windows

VBScript to Send Email from Windows Server

To test email delivery on a Windows server 1. Copy and Paste the below Code in a notepad and save it as sendmail.vbs <% Set myMail=CreateObject(“CDO.Message”) myMail.Subject=”Sending email with CDO” myMail.From=”[email protected]” myMail.To=”[email protected]” myMail.TextBody=”This is a message.” myMail.Configuration.Fields.Item _ (“”)=2 ‘Name or IP of remote SMTP server myMail.Configuration.Fields.Item _ (“”)=”″ ‘Server port myMail.Configuration.Fields.Item _ (“”)=25 myMail.Configuration.Fields.Update […] © 2016