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. Send newsletter

Send newsletter

Scheduled Pinned Locked Moved C#
question
4 Posts 4 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.
  • A Offline
    A Offline
    AkmalSyed
    wrote on last edited by
    #1

    Hi Guroos, I want to send newsletter to all recipients. I do not want to write all email address in BCC. and Also do not want to write in TO box. What should I do? Simply I want every member should get newsletter with his own email address in TO box.

    G 1 Reply Last reply
    0
    • A AkmalSyed

      Hi Guroos, I want to send newsletter to all recipients. I do not want to write all email address in BCC. and Also do not want to write in TO box. What should I do? Simply I want every member should get newsletter with his own email address in TO box.

      G Offline
      G Offline
      Gareth H
      wrote on last edited by
      #2

      AkmalSyed, You could do it in a loop.

      foreach (string email in emailCollection)
      {
      string header = "welcome to spammers are us!";
      string body = "your message";

      Email email = new Email();
      email.Header = header;
      email.Body = body;
      email.EmailAddress = email;
      email.Send();
      }

      J 1 Reply Last reply
      0
      • G Gareth H

        AkmalSyed, You could do it in a loop.

        foreach (string email in emailCollection)
        {
        string header = "welcome to spammers are us!";
        string body = "your message";

        Email email = new Email();
        email.Header = header;
        email.Body = body;
        email.EmailAddress = email;
        email.Send();
        }

        J Offline
        J Offline
        Jamman
        wrote on last edited by
        #3

        Dear. Please send solution in C#. I am using ASP.NET,C#

        S.Akmal

        P 1 Reply Last reply
        0
        • J Jamman

          Dear. Please send solution in C#. I am using ASP.NET,C#

          S.Akmal

          P Offline
          P Offline
          pmarfleet
          wrote on last edited by
          #4

          Jamman wrote:

          Please send solution in C#. I am using ASP.NET,C#

          It's rude to ask people to do your work for you. The poster gave you some useful advice. I suggest you use it to solve the problem yourself. If you want someone to do you your work, go to Rent A Coder. This site is for people who want to learn.

          Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

          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