+ Reply to Thread
Results 1 to 3 of 3

Email sent via CDO is no longer compiling

  1. #1
    Registered User
    Join Date
    06-02-2009
    Location
    Framingham, MA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Email sent via CDO is no longer compiling

    Hello all,

    Long time listener, first time caller...

    I had a functioning version of this code in another sheet at one time, but after years of neglect and abandonment it keeps hanging up in this new sheet that I've fitted it into.

    I receive: Run-time error '-2147220973 (80040213)
    The transport failed to connect to the server.

    The line in question is the ".Send"

    I know that the smtp address and port number are correct, I doublechecked with our IT dept.

    99% of the time, it's punctuation or syntax that I've overlooked.

    Here's the code in question:
    (Mainly cribbed from Ron de Bruin's excellent site...)
    Please Login or Register  to view this content.
    If anyone has the time to take a quick peek, it would be greatly appreciated.

    Thanks in advance,
    Marc

    P.S. Sorry, running Win XP Pro & Outlook 2003 locally.
    Last edited by MSoliman; 06-02-2009 at 02:10 PM.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Email sent via CDO is no longer compiling

    Hello MSoliman,

    Try changing your port from 25 (SMTP) to 465 (SMTP using SSL). If your server is sending emails using a Secure Socket Layer then you need to change your port to 465 and include both your user name and password for authentication.
    Please Login or Register  to view this content.
    Last edited by Leith Ross; 06-03-2009 at 01:49 PM. Reason: Updated with code example
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    06-02-2009
    Location
    Framingham, MA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Talking Re: Email sent via CDO is no longer compiling

    Thanks for the reply, sorry this took so long in coming.

    The port change had no effect. This same bit of code is also giving me the same error in Access. Tried it on another machine with no problems. I seem to have bigger issues than some bad VBA.

    Thanks again for your help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1