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. Web Development
  3. ASP.NET
  4. Mail is not deliverd to Destination

Mail is not deliverd to Destination

Scheduled Pinned Locked Moved ASP.NET
helpsysadmin
3 Posts 3 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.
  • R Offline
    R Offline
    Rajeesrivastava
    wrote on last edited by
    #1

    Regarding Problem in sending Mail. There is no Error but mail is not delivered to destination My mail server is also working and their Credential is also Correct. Plz help

    J B 2 Replies Last reply
    0
    • R Rajeesrivastava

      Regarding Problem in sending Mail. There is no Error but mail is not delivered to destination My mail server is also working and their Credential is also Correct. Plz help

      J Offline
      J Offline
      Jagadeesh Jupalli
      wrote on last edited by
      #2

      Hi, comment out this line smtp.DeliveryMethod = SmtpDeliveryMethod.Network; smtp.UseDefaultCredentials =false; smtp.Credentials = SmtpUser; and test it. Other wise use this code MailAddress SendFrom = new MailAddress(txtFrom.Text); MailAddress SendTo = new MailAddress(txtTo.Text); MailMessage MyMessage = new MailMessage(SendFrom, SendTo); MyMessage.Subject = "Subject here"; MyMessage.IsBodyHtml = true; MyMessage.Priority = MailPriority.Normal; MyMessage.Body = "Some Html Body here"; SmtpClient emailClient = new SmtpClient(); //emailClient.UseDefaultCredentials = true; //emailClient.DeliveryMethod = SmtpDeliveryMethod.PickupDirectoryFromIis; emailClient.Host = "localhost"; emailClient.Send(MyMessage); It will work. ~JJ

      My Blogs... .Net Interview Questions
      View 1000's of TV Channels free
      My Pages

      1 Reply Last reply
      0
      • R Rajeesrivastava

        Regarding Problem in sending Mail. There is no Error but mail is not delivered to destination My mail server is also working and their Credential is also Correct. Plz help

        B Offline
        B Offline
        bokuceres
        wrote on last edited by
        #3

        do you have anti virus on your computer? some anti virus block a process that send email from application. well,like mine. so you have to turn off those rules in your anti virus.

        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