Email in C#.net

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sweetneel
    New Member
    • Oct 2008
    • 42

    Email in C#.net

    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:

    Code:
    for(i = 1; i < this.lbxAttach.Items.Count; i++)
    {
    fAttachment=new Attachment(this.lbxAttach.SelectedItems[i].ToString());
    msg.Attachments.Add(fAttachment);
  • vekipeki
    Recognized Expert New Member
    • Nov 2007
    • 229

    #2
    Which library are you using for MAPI? Check this link: CodeProject: Simple MAPI.NET for an example.

    Comment

    Working...