C # Mailto binding syntax
3 answers
Remove the quotes from the end of the "attachment".
"mailto:" + to + "&SUBJECT=" + subject + "?BODY=" + body + "&Attachment=" + attachment
Where attachment
has an attachment link.
Note. This won't work if users don't have access to the attachment, so you can try attaching and sending it via the AC # code .
+2
source to share
From what I've seen on the internet (and while trying it) this is not always possible to do. Some email clients, and some of them I mean a lot of them, won't let you do this because it is considered a security hole. However, when accepted, the syntax provided by Shodan looks good.
+1
source to share
try it
var proc = new System.Diagnostics.Process();
proc.StartInfo.FileName = string.Format("\"{0}\"", Process.GetProcessesByName("OUTLOOK")[0].Modules[0].FileName);
proc.StartInfo.Arguments = string.Format(" /c ipm.note /m {0} /a \"{1}\"", "someone@somewhere.com", @"c:\attachments\file.txt");
proc.Start();
0
source to share