Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

outlook and c#

Status
Not open for further replies.

Norviking

Programmer
Nov 2, 2002
33
NO
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#.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top