Does this help?  
http://forums.iis.net/t/1184023.aspx?Issues+with+CDO+MESSAGE+on+Windows+2008+R2+Server
  it's not about server 2012 r2; but if that port is 8025 on your 2008r2, but 
isn't on your 2012 r2... maybe... 
 


On Tuesday, November 25, 2014 11:00 PM, "Pollard, Eric" <[email protected]> 
wrote:
  


 
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" 
  
Setmsg = CreateObject("CDO.Message") 
msg.From= sEmail 
msg.To= sEmail 
msg.Subject= "Perfect!" 
msg.TextBody= "Message!" 
  
Withmsg.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 
EndWith 
  
OnErrorResumeNext 
msg.Send 
IfErr Then 
    MsgBox Err.Description 
Else 
    msgbox "Perfect!" 
EndIf 
  
  
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