Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Re: Why is my machine blocking this email script

Reply
 
Old 07-30-2008   #1 (permalink)
David Bray


 
 

Re: Why is my machine blocking this email script

tried using an ip for the mail server ?

Greg wrote:
Quote:

> Set objEmail = CreateObject("CDO.Message")
> msgtext = "Any text can go here"
>
> objEmail.From = "TestSender@xxxxxx"
> objEmail.To = "TestReceipient@xxxxxx"
>
>
> objEmail.Textbody =msgtext
> objEmail.Configuration.Fields.Item _
> ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
> objEmail.Configuration.Fields.Item _
> ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = _
> "mail.lifestar-response.net"
> objEmail.Configuration.Fields.Item _
> ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
> objEmail.Configuration.Fields.Update
> objEmail.Send
>
>
> The above script will work on certain servers but not others. When
> executed, I receive the following error:
>
> The transport failed to connect to the server
> Code: 80040213
> CDO.Message.1
>
> All the servers are all Windows 2003 Servers R2, are in the same subnet and
> use the same Public IP address.
> I believe this to be an issue with specific machines. Assuming I have
> properley ruled out the email server and firewall, what would be blocking
> this. TIA

My System SpecsSystem Spec
Old 07-30-2008   #2 (permalink)
Greg


 
 

Re: Why is my machine blocking this email script

Yes. No luck. When I monitored with wireshark, there were no packets being
sent to the email address. The script does not even make to the network card.
--
Greg


"David Bray" <"david - at - brayworth dot" wrote:
Quote:

> tried using an ip for the mail server ?
>
> Greg wrote:
Quote:

> > Set objEmail = CreateObject("CDO.Message")
> > msgtext = "Any text can go here"
> >
> > objEmail.From = "TestSender@xxxxxx"
> > objEmail.To = "TestReceipient@xxxxxx"
> >
> >
> > objEmail.Textbody =msgtext
> > objEmail.Configuration.Fields.Item _
> > ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
> > objEmail.Configuration.Fields.Item _
> > ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = _
> > "mail.lifestar-response.net"
> > objEmail.Configuration.Fields.Item _
> > ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
> > objEmail.Configuration.Fields.Update
> > objEmail.Send
> >
> >
> > The above script will work on certain servers but not others. When
> > executed, I receive the following error:
> >
> > The transport failed to connect to the server
> > Code: 80040213
> > CDO.Message.1
> >
> > All the servers are all Windows 2003 Servers R2, are in the same subnet and
> > use the same Public IP address.
> > I believe this to be an issue with specific machines. Assuming I have
> > properley ruled out the email server and firewall, what would be blocking
> > this. TIA
>
My System SpecsSystem Spec
Old 07-31-2008   #3 (permalink)
David Bray


 
 

Re: Why is my machine blocking this email script

Maybe this

'---------------------------------
Const cdoBasic = 1
objEmail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") _
= cdoBasic
'---------------------------------

Greg wrote:
Quote:

> Yes. No luck. When I monitored with wireshark, there were no packets being
> sent to the email address. The script does not even make to the network card.
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
How to login any Windows Machine remotely using script VB Script
Pause script until process id on remote machine goes away? PowerShell
vista is blocking my machine to launch mozilla, chrome or safari, can any body help Vista security
vista is blocking my machine to launch mozilla, chrome or safari, can any body help Vista security
WMDC - Outlook Script Blocking? Vista hardware & devices


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46