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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Mail Cc System.web.Mail

Mail Cc System.web.Mail

Scheduled Pinned Locked Moved C#
helpcomsysadmintutorial
4 Posts 3 Posters 1 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
    RickZ
    wrote on last edited by
    #1

    When using the System.Web.Mail namespace and attempting to send a carbon copy 'Cc' to another mail recipient on a different domain then the 'To' recipient, I get an denyed relay error (#550) from the 'To's mail server. I've tried with several servers with same results. I must be doing something wrong. 1.1 Framework, 2002 Dev Envir. Any help please. Example: MailMessage mm = new MailMessage(); mm.From = "sender@someisp.com"; mm.To = "recipient@anotherisp.com"; mm.Cc = "anotherrecipient@adifferentisp.com;"; mm.Subject = "Test Subject"; mm.Body = "Test Body"; SmtpMail.Send(mm); If the 'Cc' is removed the process works as expected. Rick Z

    J 1 Reply Last reply
    0
    • R RickZ

      When using the System.Web.Mail namespace and attempting to send a carbon copy 'Cc' to another mail recipient on a different domain then the 'To' recipient, I get an denyed relay error (#550) from the 'To's mail server. I've tried with several servers with same results. I must be doing something wrong. 1.1 Framework, 2002 Dev Envir. Any help please. Example: MailMessage mm = new MailMessage(); mm.From = "sender@someisp.com"; mm.To = "recipient@anotherisp.com"; mm.Cc = "anotherrecipient@adifferentisp.com;"; mm.Subject = "Test Subject"; mm.Body = "Test Body"; SmtpMail.Send(mm); If the 'Cc' is removed the process works as expected. Rick Z

      J Offline
      J Offline
      John Fisher
      wrote on last edited by
      #2

      I haven't used ASP.NET yet, and maybe it's just a typo, but removing the semi-colon in the CC address may help. John
      "You said a whole sentence with no words in it, and I understood you!" -- my wife as she cries about slowly becoming a geek.

      R 1 Reply Last reply
      0
      • J John Fisher

        I haven't used ASP.NET yet, and maybe it's just a typo, but removing the semi-colon in the CC address may help. John
        "You said a whole sentence with no words in it, and I understood you!" -- my wife as she cries about slowly becoming a geek.

        R Offline
        R Offline
        RickZ
        wrote on last edited by
        #3

        Thanks anyway John, but I've tried it many, many different ways and if I send the CC to the same domain as the TO it has to be there. Check out the following doc's pulled from microsoft help. Gets or sets a semicolon-delimited list of e-mail addresses that receive a carbon copy (CC) of the e-mail message. [C#] public string Cc {get; set;} A semicolon-delimited list of e-mail addresses that receive a carbon copy (CC) of the e-mail message. Rick...

        A 1 Reply Last reply
        0
        • R RickZ

          Thanks anyway John, but I've tried it many, many different ways and if I send the CC to the same domain as the TO it has to be there. Check out the following doc's pulled from microsoft help. Gets or sets a semicolon-delimited list of e-mail addresses that receive a carbon copy (CC) of the e-mail message. [C#] public string Cc {get; set;} A semicolon-delimited list of e-mail addresses that receive a carbon copy (CC) of the e-mail message. Rick...

          A Offline
          A Offline
          Ahmed Galal
          wrote on last edited by
          #4

          ur code is fine , but the problem with the Mail Server. most of email servers won't let u send emails out of ur domain for security. i think u must have access to this mail server.

          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