+ Reply to Thread
Results 1 to 5 of 5

Using CDO to email from excel 2010

  1. #1
    Registered User
    Join Date
    10-05-2008
    Location
    Louisiana
    MS-Off Ver
    2007
    Posts
    17

    Using CDO to email from excel 2010

    I have a spread sheet that emails a standard form letter to everyone in a list of names and email addresses. It works GREAT on my machine running in excel 2007. I put this together for a friend and he is using 2010. He keeps getting "the transport feild failed to connect to the server". The original author of this code had a note that might happen and suggested to change the SMTP port from 25 to 465. I tried that but it made no difference, on either machine. Mine still works great, his still same error message.

    Could someone please help with this. Code is below. The "Next_Customer" sub is the parrent and runs the "CDO_Send_Mail" via a loop.

    I can also upload the file if that will help.

    Thanks in advance.

    Please Login or Register  to view this content.
    Last edited by azureriders; 03-08-2012 at 09:12 AM.

  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: Using CDO to email from excel 2010

    Hello azureriders,

    Sometimes firewalls, proxy servers, and anti-virus software can cause problems with CDO connections. Have your friend turn these off, if present, and try it again.
    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
    10-05-2008
    Location
    Louisiana
    MS-Off Ver
    2007
    Posts
    17

    Re: Using CDO to email from excel 2010

    Thanks Leith,

    I am going to be working with this set up a lot in the near future and I will keep this in mind. For this particular instance, it seems there was no problem to begin with as it all of a sudden started working for my friend. I figure he had a password or email entered incorrectly the first time.

    Thanks for the help.

  4. #4
    Registered User
    Join Date
    01-17-2013
    Location
    gdansk, poland
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Using CDO to email from excel 2010

    Hello! Im trying to make CDO script working under mien excel 2010, unfortunelty it give me error Run time error 429, in " Set iMsg = CreateObject("CDO.Message")" same with u script! U wrote its working under 2010, so maybe u can tell me what im missing in mine excel 2010? Ty for help

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Using CDO to email from excel 2010

    winettou,

    Unfortunately you need to post your question in a new thread, it's against the forum rules to post a question in the thread of another user. If you create your own thread, any advice will be tailored to your situation so you should include a description of what you've done and are trying to do. Also, if you feel that this thread is particularly relevant to what you are trying to do, you can surely include a link to it in your new thread.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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