vba - When sending mail via SMTP, I get "Transport Failed to ...
stackoverflow.com › questions › 41463936I get an error in the code: Transport failed To connect to server Error. I am sending a mail from the Gmail SMTP service. Looks like the configuration is set correctly, but somehow it doesn't work. Sub Email () Dim CDO_Mail As Object Dim CDO_Config As Object Dim SMTP_Config As Variant Dim strSubject As String Dim strFrom As String Dim strTo As String Dim strCc As String Dim strBcc As String Dim strBody As String strSubject = "Results from Excel Spreadsheet" strFrom = "xxx@gmail.com" ...