I am relaying to an internal SMTP server, no SMTP on the server in question.

Thanks,

Eric


From: [email protected] [mailto:[email protected]] On 
Behalf Of Sherry Kissinger
Sent: Wednesday, November 26, 2014 10:09 AM
To: [email protected]
Subject: Re: [MDT-OSD] VBScript / SCCM OSD Completion

Does this help?  
http://forums.iis.net/t/1184023.aspx?Issues+with+CDO+MESSAGE+on+Windows+2008+R2+Server<https://urldefense.proofpoint.com/v2/url?u=http-3A__forums.iis.net_t_1184023.aspx-3FIssues-2Bwith-2BCDO-2BMESSAGE-2Bon-2BWindows-2B2008-2BR2-2BServer&d=AAMFaQ&c=aLnS6P8Ng0zSNhCF04OWImQ_He2L69sNWG3PbxeyieE&r=3mC-HUKvtsMyigAA33PKw1cdfPNhqRTiD0tD-tVN2Gc&m=oHMK_ouwzERS4fEE-PvOQsnNBwuxQczjDx7Ab21o18s&s=MmdkhsLZO6YU_sWiy-RQNY79_hbMGBlSNPc09E-2QTI&e=>
  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]<mailto:[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]<mailto:[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<http://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