Click here to Skip to main content
12,065,720 members (31,037 online)
Rate this:
 
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
ridoy57.5K
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 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)



Advertise | Privacy | Mobile
Web04 | 2.8.160207.1 | Last Updated 13 Oct 2012
Copyright © CodeProject, 1999-2016
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