Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have used a gmail account to send a mail to multiple users,but my NetworkCredential
is my own company server,
i have used
C#
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
Updated 13-Oct-12 3:40am
v2

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.
 
Share this answer
 
Comments
ridoy 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900