Send email with Classic ASP on Win 2012 R2
<% Response.Write "before object created" Set myMail=CreateObject("CDO.Message") myMail.Subject="Sending email with CDO" myMail.From="[email protected]" ' FROM address myMail.To="[email protected]" ' TO address myMail.TextBody="This is a really great message!" ' Contents myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing")=2 ' use 2 myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") ="127.0.0.1" 'Name or IP of remote SMTP server myMail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") =25 'Server port (OPTIONAL) myMail.Configuration.Fields.Update myMail.Send set myMail=nothing Response.Write ", object destroyed <br /> And we are done" Response.End %>











