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. problem in sending mail

problem in sending mail

Scheduled Pinned Locked Moved ASP.NET
csharpsysadminhelpquestion
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

    i have facing sending mail.i have write code: System.Net.NetworkCredential SmtpUser = new System.Net.NetworkCredential("donotreply@whclubs.net", "reply_wh"); SmtpClient smtp = new SmtpClient(); MailAddress from = new MailAddress(txtFrom.Text); MailAddress to = new MailAddress(txtTo.Text); MailMessage message = new MailMessage(from, to); message.Subject = txtSubject.Text; smtp.Host = "mail.whclubs.net"; smtp.DeliveryMethod = SmtpDeliveryMethod.Network; smtp.UseDefaultCredentials =false; smtp.Credentials = SmtpUser; smtp.Send(message); what is the problem in sending mail Thanks in advance

    K A 2 Replies Last reply
    0
    • R Rajeesrivastava

      i have facing sending mail.i have write code: System.Net.NetworkCredential SmtpUser = new System.Net.NetworkCredential("donotreply@whclubs.net", "reply_wh"); SmtpClient smtp = new SmtpClient(); MailAddress from = new MailAddress(txtFrom.Text); MailAddress to = new MailAddress(txtTo.Text); MailMessage message = new MailMessage(from, to); message.Subject = txtSubject.Text; smtp.Host = "mail.whclubs.net"; smtp.DeliveryMethod = SmtpDeliveryMethod.Network; smtp.UseDefaultCredentials =false; smtp.Credentials = SmtpUser; smtp.Send(message); what is the problem in sending mail Thanks in advance

      K Offline
      K Offline
      Kannan Ar
      wrote on last edited by
      #2

      What is the error message?

      1 Reply Last reply
      0
      • R Rajeesrivastava

        i have facing sending mail.i have write code: System.Net.NetworkCredential SmtpUser = new System.Net.NetworkCredential("donotreply@whclubs.net", "reply_wh"); SmtpClient smtp = new SmtpClient(); MailAddress from = new MailAddress(txtFrom.Text); MailAddress to = new MailAddress(txtTo.Text); MailMessage message = new MailMessage(from, to); message.Subject = txtSubject.Text; smtp.Host = "mail.whclubs.net"; smtp.DeliveryMethod = SmtpDeliveryMethod.Network; smtp.UseDefaultCredentials =false; smtp.Credentials = SmtpUser; smtp.Send(message); what is the problem in sending mail Thanks in advance

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        Rajeesrivastava wrote:

        what is the problem in sending mail

        You should mention what problem you are facing !!!

        cheers, Abhijit

        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