Email with CDO "the transport failed to connect to the server"
Email with CDO "the transport failed to connect to the server"
Email with CDO "the transport failed to connect to the server"
Email with CDO "the transport failed to connect to the server"
Email with CDO "the transport failed to connect to the server"
Email with CDO "the transport failed to connect to the server" Email with CDO "the transport failed to connect to the server" Email with CDO "the transport failed to connect to the server" Email with CDO "the transport failed to connect to the server" Email with CDO "the transport failed to connect to the server" Email with CDO "the transport failed to connect to the server" Email with CDO "the transport failed to connect to the server" Email with CDO "the transport failed to connect to the server"
Email with CDO "the transport failed to connect to the server" Email with CDO "the transport failed to connect to the server"
Email with CDO "the transport failed to connect to the server"
Go Back  Xtreme Visual Basic Talk > > > Email with CDO "the transport failed to connect to the server"


Reply
 
Thread Tools Display Modes
  #1  
Old 07-06-2015, 01:39 AM
Maany Maany is offline
Newcomer
 
Join Date: Nov 2014
Posts: 9
Question Email with CDO "the transport failed to connect to the server"


Hey all,

I'm trying to send an email from my app using CDO, unfortunately i don't have admin rights on my pc (not sure if this is the cause for the problem) whenever my app tries to send an email i get the "the transport failed to connect to the server" error, have tried increasing timeout and even creating a new gmail account with no use.

any idea how to fix it ? it's driving me crazy !

Code:
Dim ObjSendMail
    Set ObjSendMail = CreateObject("CDO.Message")
    With ObjSendMail.Configuration.Fields
    .Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2  
    .Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.gmail.com"
    .Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 465
    .Item("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = True
 .Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 1000
   .Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "username@gmail.com"
.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "userpassword"
.Update
    End With
    If Text24.Text = "" Then
        ObjSendMail.To = "receipnt@email.com"
    Else
        ObjSendMail.To = Text24.Text 
    End If
    
    ObjSendMail.Subject = MSG_TEXT
    ObjSendMail.From = "sender@gmail.com"

    ObjSendMail.HTMLBody = MSG_TEXT 

    ObjSendMail.Send

    Set ObjSendMail = Nothing
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Email with CDO "the transport failed to connect to the server"
Email with CDO "the transport failed to connect to the server"
Email with CDO "the transport failed to connect to the server" Email with CDO "the transport failed to connect to the server"
Email with CDO "the transport failed to connect to the server"
Email with CDO "the transport failed to connect to the server"
Email with CDO "the transport failed to connect to the server" Email with CDO "the transport failed to connect to the server" Email with CDO "the transport failed to connect to the server" Email with CDO "the transport failed to connect to the server" Email with CDO "the transport failed to connect to the server" Email with CDO "the transport failed to connect to the server" Email with CDO "the transport failed to connect to the server"
Email with CDO "the transport failed to connect to the server"
Email with CDO "the transport failed to connect to the server"
 
Email with CDO "the transport failed to connect to the server"
Email with CDO "the transport failed to connect to the server"
 
-->