Results 1 to 7 of 7

Thread: SMTP Server in CDO

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2005
    Posts
    7

    Thumbs up SMTP Server in CDO

    I'm trying to send an email to a gmail address using CDO 2000 Library in Visual Basic 6. The problem is, I can't find a decent SMTP server. When I tried to use gmail's SMTP server (smtp.gmail.com) I got an error , -I believe- the cause of the error is Gmail's smtp server secuirty system (STRL or whatever), probably, CDO doesn't know how to communicate with that type of SMTP servers. I tried Hotmail's mx2.hotmail.com it works fine if the "rcpt to" address is a hotmaill address, but it wont work with any other addresses. I tried google's smtp.google.com but it rejected my "rcpt to" address (which is a gmail address), I tried few other smtp servers and they all rejected my "rcpt to" address too.

    How can I solve this problem?

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: SMTP Server in CDO

    Try this one. It has a server that was working last month.
    55 people have downloaded it already.

    http://vbforums.com/attachment.php?attachmentid=39531

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2005
    Posts
    7

    Re: SMTP Server in CDO

    Thanks dglienna

    Again, I get SMTP Error: 0 Timeout waiting for server response, so I guess the SMTP server is no good..

    Still looking for a solution?? I'd really appreciate it if anyone has a solution.

  4. #4
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: SMTP Server in CDO

    Did you read the txt file that I attached? The problem may be on your end.
    Your ISP may be authenticating mail. Mine only works if I use my ISP username as the FROM address. The domain doesn't seem to matter, but things don't work if I want to send from [email protected] either.

  5. #5

    Thread Starter
    New Member
    Join Date
    Aug 2005
    Posts
    7

    Re: SMTP Server in CDO

    Problem solved. gmail-smtp-in.l.google.com works perfect if the rcpt to is gmail.

  6. #6
    Lively Member
    Join Date
    May 2005
    Posts
    90

    Re: SMTP Server in CDO

    Just a general message to everybody else; most SMTP servers are configured so that they can't be utilized for spam, the filters generally limit traffic to incoming mail to local addresses and verified outgoing accounts.
    ^_^

  7. #7
    New Member
    Join Date
    Sep 2005
    Posts
    2

    Re: SMTP Server in CDO

    Try this one, it works for me:

    VB Code:
    1. With Flds
    2.           .Item(cdoSendUsingMethod) = 2 'cdoSendUsingPort 'remote server
    3.           .Item(cdoSMTPServer) = "smtp.gmail.com"
    4.           .Item(cdoSMTPServerPort) = 465
    5.           .Item(cdoSMTPUseSSL) = True
    6.           .Item(cdoSMTPConnectionTimeout) = 30 'timeout
    7.           .Item(cdoSMTPAuthenticate) = cdoBasic
    8.           .Item(cdoSendUserName) = "" 'user
    9.           .Item(cdoSendPassword) = "" 'password
    10.           .Item(cdoURLGetLatestVersion) = True
    11.           .Update
    12.     End With
    13.        
    14.     With iMsg
    15.             Set .Configuration = iConf
    16.             .To = txtTo.Text
    17.             .From = txtFrom.Text
    18.             .Subject = txtSubject.Text
    19.             .TextBody = txtMain.Text
    20.             Me.MousePointer = 11
    21.             .Send
    22.             Me.MousePointer = 0
    23.     End With

    Hope this helps.

Posting Permissions

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



Click Here to Expand Forum to Full Width