hi all,
i am writing a email sending windows application in c#.net.
where i have a list box where i can store the file. attachments list.
now i want to to attach all the files from the listbox. as an attachments.
i can sent it. but the problem is: i can't attach more than one file.
i am writing:
i am writing a email sending windows application in c#.net.
where i have a list box where i can store the file. attachments list.
now i want to to attach all the files from the listbox. as an attachments.
i can sent it. but the problem is: i can't attach more than one file.
i am writing:
Code:
for(i = 1; i < this.lbxAttach.Items.Count; i++)
{
fAttachment=new Attachment(this.lbxAttach.SelectedItems[i].ToString());
msg.Attachments.Add(fAttachment);
Comment