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.
source share