Click here to Skip to main content
16,018,442 members

Comments by Member 9901144 (Top 4 by date)

Member 9901144 4-Apr-17 9:00am View    
I would say yes. As I mentioned, I'm pulling data from database into arraylist and then binding with gridview/ or repeater control. I can store gridview in viewstate, something like
ViewState["dataserialnumber"] = GridView1.DataSource;
.
What is your thoughts?
Member 9901144 20-Oct-14 16:58pm View    
list_Email is my ArrayList which hold the list of emails from database(see my orig code)
Member 9901144 20-Oct-14 16:42pm View    
Thank you for your respond!!
Here's the fragment of the code for your suggested option 2:
objMail.From = new MailAddress("noreply@abc.com");
objMail.Subject = txtSubject.Text.Trim();
//objMail.Bcc.Add(bcc);
objMail.Body = ftbEmailMesg.Text;
objMail.Priority = MailPriority.Normal;
objMail.IsBodyHtml = true;

for (i = 0; i < list_Emails.Count; i++)
{
email = Convert.ToString(list_Emails[i]);
objMail.To.Add(email);
// objMail.Bcc.Add(email);
mSmtpClient.Host = "00.000.0.000";
mSmtpClient.Send(objMail);
}
When I used this loop to send a separate email to the user, unfortunately, all users email display in "To" property. Could be my loop is wrong?
Thanks Sergey!
Member 9901144 10-Oct-14 16:59pm View    
Appreciated your quick respond!
The .net app(3.5)is using System.Net.Mail class....would prefer to use this class :)