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. C#
  4. Error in Mail sending

Error in Mail sending

Scheduled Pinned Locked Moved C#
helpcomsysadmintutorial
2 Posts 2 Posters 0 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.
  • E Offline
    E Offline
    Exelioindia
    wrote on last edited by
    #1

    Hi all, I am having an error and an doubt. In my applicaiton i am sending automatic mail. In that whn i use SmtpMail.SmtpServer = " localhost" , there is no issue for me. But while using the SmtpMail.SmtpServer = " smtp.your-server.com" , mail is not sending/reciving for me. I got the sample from some other forums. Plz some one explaion wht is the problem, and how to solve i. Also suggest me in which suitation i have to use localhost and hich suitation i have to use smtp.servername.com. Thanks in advance

    Know is Drop, Unknown is Ocean

    J 1 Reply Last reply
    0
    • E Exelioindia

      Hi all, I am having an error and an doubt. In my applicaiton i am sending automatic mail. In that whn i use SmtpMail.SmtpServer = " localhost" , there is no issue for me. But while using the SmtpMail.SmtpServer = " smtp.your-server.com" , mail is not sending/reciving for me. I got the sample from some other forums. Plz some one explaion wht is the problem, and how to solve i. Also suggest me in which suitation i have to use localhost and hich suitation i have to use smtp.servername.com. Thanks in advance

      Know is Drop, Unknown is Ocean

      J Offline
      J Offline
      JSSUML
      wrote on last edited by
      #2

      First check to see if the "smtp.your-server.com" is reachable from your workstation. Try ping smtp.your-server.com from command prompt. If it does not suceed that means there is no direct connection to smtp.your-server.com and you will probably have to use a relay server to send your mail.

      ================================ Thanks();

      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