outlook mailto with attachment vb.net 2003
Posted on 2007-03-31
Does anyone know an easy method to use maito function with an attachment. I've look everywhere and tried many code. I tried this (below) and it lauched a new message without an attachment,
Dim Addr As String = "firstname.lastname@example.org"
Dim Subject As String = "Subject"
Dim Body As String = "Body"
Dim Attach As String = "C:\Path\FileName.txt"
System.Diagnostics.Process.Start("mailto:" & Addr & "?subject=" & Subject & "&body=" & Body & "&attachment=" & Attach