Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Attach File Through mailto URI

Is it possible to attach a file using "mailto:" redirect in javascript?

Something like this:

document.location = "mailto:"+recipient+"?subject="+subject+"&body="+msg+"?attach="+"file1.zip";
like image 982
Kiran Avatar asked Mar 03 '10 14:03

Kiran


People also ask

How do you attach a file to mailto?

Have the user choose a file. Upload the file to a server. Have the server return a random file name after upload. Build a mailto: link that contains the URL to the uploaded file in the message body.


1 Answers

No, you can not add an attachment to a message with the mailto: URL scheme.

mailto: only supports header values or text/plain content. See RFC 2368 for details.

like image 184
Martin Avatar answered Oct 22 '22 10:10

Martin