So I have an odd question.  I have a vbscript that runs at the end of the OSD 
deployment that works wonderfully in 2008 R2, but I get an error when the 
script runs on 2012 R2.  This basic script runs on 2008 R2 but not 2012 R2, the 
script errors when executed in an already installed 2012 R2 server.

Error Message
"CDO.Message.1: The transport failed to connect to the server."

Sample Script
sEmail="[email protected]"
smtpServer="yourmailserver"

Set msg = CreateObject("CDO.Message")
msg.From = sEmail
msg.To = sEmail
msg.Subject = "Perfect!"
msg.TextBody = "Message!"

With msg.Configuration
    
.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver";)=smtpServer
    .Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport";)=25
    .Fields("http://schemas.microsoft.com/cdo/configuration/sendusing";)=2
    .Fields("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate";)=0
    .Fields.Update
End With

On Error Resume Next
msg.Send
If Err Then
    MsgBox Err.Description
Else
    msgbox "Perfect!"
End If


Thanks,

Eric


________________________________

CONFIDENTIALITY NOTICE: This email contains information from the sender that 
may be CONFIDENTIAL, LEGALLY PRIVILEGED, PROPRIETARY or otherwise protected 
from disclosure. This email is intended for use only by the person or entity to 
whom it is addressed. If you are not the intended recipient, any use, 
disclosure, copying, distribution, printing, or any action taken in reliance on 
the contents of this email, is strictly prohibited. If you received this email 
in error, please contact the sending party by reply email, delete the email 
from your computer system and shred any paper copies.

Note to Patients: There are a number of risks you should consider before using 
e-mail to communicate with us. See our Privacy & Security page on 
www.henryford.com for more detailed information as well as information 
concerning MyChart, our new patient portal. If you do not believe that our 
policy gives you the privacy and security protection you need, do not send 
e-mail or Internet communications to us.

Reply via email to