I have an aspx page, in that page on a button click i have to send the mail without going to server side..
My requirement is i have to use only the "mailto" option available in html.
I referred some sites, mostly they posted the below code.
< a href='[email protected]?body=somebody&subject=someSubject&attachment="C:\\myfolder\\myfile.txt"'>my link < /a>
but it doesn't work..
Can any one help me ?
Thanks in advance.

Jayakumar BalasubramaniamPosted Apr 15, 2015, 2:52 AM
Manoj BhoirPosted Apr 15, 2015, 2:32 AM
Standard mailto protocol does not support attachments (see specification).
You can use System.Net.Mail to send email with attachment.
Check this for more information :
http://www.c-sharpcorner.com/UploadFile/dchoksi/SendingMail02132007002923AM/SendingMail.aspx
Jayakumar BalasubramaniamPosted Apr 15, 2015, 1:22 AM
Yeah i know that code will work. But i need to attach some document with the mail using "mailto" that's my issue.
In the above link i don't find anything for attachment.
Manoj BhoirPosted Apr 15, 2015, 12:58 AM
Try this one :
Click Here to Email
For more information see this : http://www.rapidtables.com/web/html/mailto.htm