By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,501 Members | 2,861 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,501 IT Pros & Developers. It's quick & easy.

Email in C#.net

P: 42
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:

Expand|Select|Wrap|Line Numbers
  1. for(i = 1; i < this.lbxAttach.Items.Count; i++)
  2. {
  3. fAttachment=new Attachment(this.lbxAttach.SelectedItems[i].ToString());
  4. msg.Attachments.Add(fAttachment);
Jan 27 '09 #1
Share this Question
Share on Google+
1 Reply


vekipeki
Expert 100+
P: 229
Which library are you using for MAPI? Check this link: CodeProject: Simple MAPI.NET for an example.
Jan 27 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.