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";
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With