View Single Post
Old 07-06-2015, 01:39 AM
Maany Maany is offline
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 !

Dim ObjSendMail
    Set ObjSendMail = CreateObject("CDO.Message")
    With ObjSendMail.Configuration.Fields
    .Item("") = 2  
    .Item("") = ""
    .Item("") = 465
    .Item("") = True
 .Item("") = 1000
   .Item("") = 1
.Item("") = ""
.Item("") = "userpassword"
    End With
    If Text24.Text = "" Then
        ObjSendMail.To = ""
        ObjSendMail.To = Text24.Text 
    End If
    ObjSendMail.Subject = MSG_TEXT
    ObjSendMail.From = ""

    ObjSendMail.HTMLBody = MSG_TEXT 


    Set ObjSendMail = Nothing
Reply With Quote