I've been developing a firefox extension, which needs to send an email through the user's email client when a button is pressed.
I've been sending email by simply using a mailto like this:
function sendEmail(buttonEvent){
gBrowser.addTab("mailto:example@example.com?subject=Hello World");
}
But I need to add an attachment to the email that is being sent.
I understand that a mailto link can have an attachment under some versions of Outlook, by using an "?attachment" like this: mailto:example@example.com?attachment=""C:\example.txt""
, but I've heard that's not cross platform, has been removed from the newest versions of Outlook, so this isn't a real option.
With that in mind, is there anyway to send an email with an attachment in a Firefox extension, without using server side code?