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 _ (“http://schemas.microsoft.com/cdo/configuration/sendusing”)=2 ‘Name or IP of remote SMTP server myMail.Configuration.Fields.Item _ (“http://schemas.microsoft.com/cdo/configuration/smtpserver”)=”127.0.0.1″ ‘Server port myMail.Configuration.Fields.Item _ (“http://schemas.microsoft.com/cdo/configuration/smtpserverport”)=25 myMail.Configuration.Fields.Update […]

www.hostingdada.net © 2016