BISCO3
asked on
How do I add attachments to a new Outlook Mail Message - using Process.Start("mailto")
Is there a way to add attachments using the Process.Start feature???
The new mail message comes up with everything other than the attachment.(To, CC, Subject & Body)
This is the code I tried using:
Dim StrBuilder As New StringBuilder
With StrBuilder
.Append("mailto:junior2124 @msn.com")
.Append("&cc=escemi@msn.co m")
.Append("&subject=Database Files")
.Append("&body=Test")
.Append("&attachments=C:\U sers\escem i\Test.txt ")
End With
Process.Start(StrBuilder.T oString)
The new mail message comes up with everything other than the attachment.(To, CC, Subject & Body)
This is the code I tried using:
Dim StrBuilder As New StringBuilder
With StrBuilder
.Append("mailto:junior2124
.Append("&cc=escemi@msn.co
.Append("&subject=Database
.Append("&body=Test")
.Append("&attachments=C:\U
End With
Process.Start(StrBuilder.T
Use the /a switch and specify the files.
Also try the following method
mailto:iudith.m@zim.co.il? subject=my report&body=see attachment&attachment="\\m yhost\myfo lder\myfil e.lis"
mailto:iudith.m@zim.co.il?
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.