Posted on: 1/10/2014 10:06:23 AM | Views : 642

Dear reader,
I have diverend email adressen in my listbox. Now i want to try with my button click that the message is send to al my adresses.
When i debug my script i see he is found al thoose adresses, but only the first one is getting the message.

Please can you give me a direction to find the write code for it.

My C# code
protected void buttontekst (object sender, EventArgs e) { Button btn = (Button)sender; a = btn.Text; LbxMailList.Items.Add(a); } protected void BtnSendMail_Click(object sender, EventArgs e) { string b; System.Text.StringBuilder sb = new System.Text.StringBuilder(); foreach (object item in LbxMailList.Items) { sb.Append(item.ToString()); sb.Append(" "); ...

Go to the complete details ...