This content has been marked as final. Show 5 replies
If you're having trouble figuring out how to use JDBC, this is the wrong forum.
Assuming you can get a ResultSet of email addresses and iterate over its members,
message.AddRecipient(Message.RecipientType.TO, new InternetAddress(address));
for each address.
You don't need a StringBuffer.
I don't know what a token synchronizer is.
subodh_ahire wrote:No, it won't. The code created one message and added several recipients to it. As should be obvious by looking at it. Frankly I think you're in over your head with this question; it's obvious you don't know nearly enough about Java programming to be working on these topics. And asking vague questions on forums isn't going to fix that. You need to get a basic grounding in Java programming first.
If i follow your statement then code will send multiple mail,but i want to send one mail for no. of users.