I have a file available through an URL (need authorization). I created a mailto: link and would like to attach this file in the mail. How can I do that ?
Something like
If you're hoping for an universal solution, you can't. The mailto
protocol described in the RFC 2368 tells us :
The creator of a mailto URL cannot expect the resolver of a URL to understand more than the "subject" and "body" headers.
Even though other headers might be used and understood by some mail clients, this isn't an universally compatible solution. Unless you tell your clients to open these links specifically with a specific mail client that you know supports more headers (like a hypothetical attachment
header), you should consider this to not be doable.