Is it possible to add an attachment to mail with the mailto function in actionscript 3?

Is it possible to add an attachment to mail with the mailto function in actionscript 3? This is what I want to open the default email program to create a window with some data, but I also need to add the file as an attachment, and this file should be a screen capture of the application. Im doing some research and can't find anything even close to this, does anyone have any ideas? All help would be appreciated because I really lost here. Thanks in advance;)

Edit:

public function onClickEmail(event:MouseEvent):void{ var url:String = "mailto: juan@wncdevelopment.com ?subject=Configurador&body=testing&attachment=C:\Users\Juan\Documents\AvoiderGame\test.bmp"; var request:URLRequest = new URLRequest(url); try { navigateToURL(request, '_self'); } catch (e:Error) { trace("Error occurred!"); } } 

This did not work :( he opens the mail client, all information is approved, but the file is not attached

2nd Edit:

It seems that the attachment = path / to / file no longer works in new mail clients, I think it worked before outlook 97, after which it was deleted for security reasons, and now it is impossible to do this. Thanks for all the answers, I chose N. Lucas's answer because his answer was right, simply because it is no longer possible.

+4
source share
2 answers

In my opinion, using the & attachment = file only works locally.

 mailto: email@domain.com ?subject=file&body=see+file&attachment=\\host\path\to\file 

Where

 mailto: email@domain.com ?subject=file&body=see+file&attachment=http://domain/file 

does not work.

+7
source

mailto allows you to define the body of an email message, so it’s possible that you can embed a base64 encoded image. The problem is how to get the screenshot passed to him.

+2
source

Source: https://habr.com/ru/post/1312504/


All Articles