I want to launch an email with an attachment by clicking a button on a vb.net screen.
In the OnClick event, I have the following code:
Dim EmailAddr as String = "MAILTO:SOMEBODY@SOMEWHERE.COM?Subject=Sending an attachment"
EmailAddr = EmailAddr & "&Body=Hello How are you"
EmailAddr = EmailAddr & "&Attachment='\\XXX-xxx-01\users\johndoe\DlyActvty.xls'"
The Outlook email body appears with the Address, Subject, and Body properly filled in, but WITHOUT the attachment. No error message appears, and the attachment location is valid.
What is the proper syntax for sending an email with attachment, using "System.Diagnostics.Process.Start"?
I know there are alternative methods I can research, but I really need to use "System.Diagnostics.Process.Start" due to convenience and certain constraints in the system I am creating this enhancement for.