Click here to Skip to main content
15,900,511 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a username and emailid column in my table. I need sent a mail to every one in that table...I have a Send mail method in my code behind, but it can be sent a mail to only one user at a time.I have bind that table in dataset... How to get that email id datas one by one with username?
Posted
Comments
TrushnaK 7-Aug-13 8:26am    
are you tried using loop.

1 solution

How do you want to send an Email ?

One emai to all users at a time ?
 
Share this answer
 
Comments
SnvMohan 7-Aug-13 8:06am    
yes....One mail to all
SnvMohan 7-Aug-13 8:06am    
at single click
CodeBlack 7-Aug-13 8:28am    
You can get all the comma separated user emails using LINQ as shown below :



var userEmails = string.Join(",", users.Select(u => u.Email).ToList()) + ",";

If this is helpful than donot forget to mark as an answer and rate the solution.

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