In my application I want to be able to send mail with attachments.
By using the smptMail object I can add attachments by using a filedialog and then the code:
aMessage.Attachments.Add( new MailAttachment(VedleggTxtBox.Text,MailEncoding.Base64))
where the VedleggTxtBox.Text is set by whatever the user select.
Thats all good, but I want to put in a path to a document manually in the code instead of using a filedialog to automaticcaly set the value og Vedleggtxtbox.text.
Plz help..
Or could anyone direct me to a page or some code on how I do attachements by using Outlook in my application. I been searching a long time, and havent found a good example yet using c#.
By using the smptMail object I can add attachments by using a filedialog and then the code:
aMessage.Attachments.Add( new MailAttachment(VedleggTxtBox.Text,MailEncoding.Base64))
where the VedleggTxtBox.Text is set by whatever the user select.
Thats all good, but I want to put in a path to a document manually in the code instead of using a filedialog to automaticcaly set the value og Vedleggtxtbox.text.
Plz help..
Or could anyone direct me to a page or some code on how I do attachements by using Outlook in my application. I been searching a long time, and havent found a good example yet using c#.