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. Error in Mailing

Error in Mailing

Scheduled Pinned Locked Moved ASP.NET
csharpcomsysadminhelp
4 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.
  • K Offline
    K Offline
    Krazy Programmer
    wrote on last edited by
    #1

    Hi friends I am able to send mail to the id of same domain but not to other.... this is the code and below of the code is error System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage(); message.From = new MailAddress(frmEmail); message.To.Add(new MailAddress(txtEmailAddress.Text)); message.Subject = " From "+ Label1.Text + " Your Booking Information " ; message.Body = booking_body; SmtpClient client = new SmtpClient(); client.Host = hostname; client.UseDefaultCredentials = false; System.Net.NetworkCredential auth = new System.Net.NetworkCredential(user_name,password); client.Credentials = auth; client.Send(message); ERROR: Syntax error, command unrecognized. The server response was: mr.sindhutiwari@yahoo.com relaying prohibited. You should authenticate first please tell me where i am going wrong

    If You win You need not Explain............ But If You Loose You Should not be there to Explain......

    S E 2 Replies Last reply
    0
    • K Krazy Programmer

      Hi friends I am able to send mail to the id of same domain but not to other.... this is the code and below of the code is error System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage(); message.From = new MailAddress(frmEmail); message.To.Add(new MailAddress(txtEmailAddress.Text)); message.Subject = " From "+ Label1.Text + " Your Booking Information " ; message.Body = booking_body; SmtpClient client = new SmtpClient(); client.Host = hostname; client.UseDefaultCredentials = false; System.Net.NetworkCredential auth = new System.Net.NetworkCredential(user_name,password); client.Credentials = auth; client.Send(message); ERROR: Syntax error, command unrecognized. The server response was: mr.sindhutiwari@yahoo.com relaying prohibited. You should authenticate first please tell me where i am going wrong

      If You win You need not Explain............ But If You Loose You Should not be there to Explain......

      S Offline
      S Offline
      Sylvester george
      wrote on last edited by
      #2

      you can set the relay property of SMTP server by following steps open IIS Right click on default SMTP server, then select properties gott Access tab, there you will find Relay button, there you set the Relay restrictions.

      Regards, Sylvester G If we don't succeed, we run the risk of failure

      1 Reply Last reply
      0
      • K Krazy Programmer

        Hi friends I am able to send mail to the id of same domain but not to other.... this is the code and below of the code is error System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage(); message.From = new MailAddress(frmEmail); message.To.Add(new MailAddress(txtEmailAddress.Text)); message.Subject = " From "+ Label1.Text + " Your Booking Information " ; message.Body = booking_body; SmtpClient client = new SmtpClient(); client.Host = hostname; client.UseDefaultCredentials = false; System.Net.NetworkCredential auth = new System.Net.NetworkCredential(user_name,password); client.Credentials = auth; client.Send(message); ERROR: Syntax error, command unrecognized. The server response was: mr.sindhutiwari@yahoo.com relaying prohibited. You should authenticate first please tell me where i am going wrong

        If You win You need not Explain............ But If You Loose You Should not be there to Explain......

        E Offline
        E Offline
        eyeseetee
        wrote on last edited by
        #3

        Can you send e-mail to local address but not web address like yahoo and hotmail?

        K 1 Reply Last reply
        0
        • E eyeseetee

          Can you send e-mail to local address but not web address like yahoo and hotmail?

          K Offline
          K Offline
          Krazy Programmer
          wrote on last edited by
          #4

          my mail server is mail.abcd.com so i am able to send mails to any id of this domain like xyz@abcd.com but when i tried to send it to other ids error raised

          If You win You need not Explain............ But If You Loose You Should not be there to Explain......

          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