I have a routine to send email using CDO (found on the web, but not sure where). I have been using it for about 4 months and only had one problem,"The transport failed to connect to the server." . I waited about an hour and all was well.
I reference a excel file using vlookup to get the email address. The file had been updated and caused a "#NAME" error. My error checking did not/does not check for that error and I sent it to the server. Now I can't send any email using CDO/SMTP. I can send from my gmail account directly. If I step though the routine and get to send, it just hangs.
Is there a way to clear the CDO/SMTP server or do I have to address the problem differently?
CDO_Mail.Subject = strSubject
CDO_Mail.From = strFrom
CDO_Mail.To = strTo
CDO_Mail.TextBody = strBody
CDO_Mail.CC = strCc
CDO_Mail.BCC = strBcc
CDO_Mail.Send
Regards,
Tom
I reference a excel file using vlookup to get the email address. The file had been updated and caused a "#NAME" error. My error checking did not/does not check for that error and I sent it to the server. Now I can't send any email using CDO/SMTP. I can send from my gmail account directly. If I step though the routine and get to send, it just hangs.
Is there a way to clear the CDO/SMTP server or do I have to address the problem differently?
CDO_Mail.Subject = strSubject
CDO_Mail.From = strFrom
CDO_Mail.To = strTo
CDO_Mail.TextBody = strBody
CDO_Mail.CC = strCc
CDO_Mail.BCC = strBcc
CDO_Mail.Send
Regards,
Tom