Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET
I have used a gmail account to send a mail to multiple users,but my NetworkCredential
is my own company server,
i have used
MailMessage objMessage = new MailMessage();
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
 {
objMessage.To.Add(ds.Tables[0].Rows[i]["email"].ToString())
}
 
Mail has sent to all users but the problem is each user can see all the mail id which i have added ,
how can i solve the problem
Posted 13-Oct-12 3:56am
Edited 13-Oct-12 4:40am
ridoy52K
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Use the BCC[^] list instead of the To list - send it to a "safe" address, and add eveybody else as BCC.
 
BCC stands for "Blind Carbon Copy", and is similar to the CC list, but names are not listed to anyone.
  Permalink  
Comments
ridoy at 13-Oct-12 9:55am
   
right..+5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 6,045
1 DamithSL 4,601
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,260


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 13 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100