Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Cannot connect to smtp server error !

Cannot connect to smtp server error !

Scheduled Pinned Locked Moved Visual Basic
helpcomsysadmin
2 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Coding C
    wrote on last edited by
    #1

    Hi programmers, i get the cannot connect to smtp server error when i try to send mail through mail from my vb application. i used aspsmartmail componet for this. the mails goes correctly when i use normal outlook express or my domain account through internet explorer but gives error when i send it through my code. i am giving the code snippet which sends mails. sorry i cant give full details of my mail server and email account in code snippet plz consider for this. plz help me guys. Dim mySmartMail As aspSmartMail.SmartMail Set mySmartMail = New aspSmartMail.SmartMail mySmartMail.Server = "ip address of mail server" mySmartMail.ServerTimeOut = 35 mySmartMail.UserName = "username" mySmartMail.Password = "password" mySmartMail.SenderAddress = "test@mydomain.com" mySmartMail.Recipients.Add "nitin@mydomain.com" mySmartMail.Subject = "my mail" mySmartMail.Body = "body" mySmartMail.SendMail Set mySmartMail = Nothing Help! Nitin...

    D 1 Reply Last reply
    0
    • C Coding C

      Hi programmers, i get the cannot connect to smtp server error when i try to send mail through mail from my vb application. i used aspsmartmail componet for this. the mails goes correctly when i use normal outlook express or my domain account through internet explorer but gives error when i send it through my code. i am giving the code snippet which sends mails. sorry i cant give full details of my mail server and email account in code snippet plz consider for this. plz help me guys. Dim mySmartMail As aspSmartMail.SmartMail Set mySmartMail = New aspSmartMail.SmartMail mySmartMail.Server = "ip address of mail server" mySmartMail.ServerTimeOut = 35 mySmartMail.UserName = "username" mySmartMail.Password = "password" mySmartMail.SenderAddress = "test@mydomain.com" mySmartMail.Recipients.Add "nitin@mydomain.com" mySmartMail.Subject = "my mail" mySmartMail.Body = "body" mySmartMail.SendMail Set mySmartMail = Nothing Help! Nitin...

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Well, you'll most likely have to get with the people that wrote that component. If you purchased it, then you have at least 1 FREE support incident, otherwise it's $159/incident. If the IP works in Outlook, the exact same server name/IP should work in this component. If it's not, there might be some setting in this component that you have to set, but have so far failed to do so. I have no idea what that would be, since I've never used this component. Another possibility is that you have the free version and it expires. If so, then you'll have to shovel out the money to get the full version.

      Dave Kreskowiak Microsoft MVP - Visual Basic

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups