是否可以使用动作脚本3中的mailto功能向邮件添加附件? [英] Is it possible to add a attachment to a mail with the mailto function in actionscript 3?

查看:185
本文介绍了是否可以使用动作脚本3中的mailto功能向邮件添加附件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用动作脚本3中的mailto功能向邮件添加附件? 就是这样,我想用一些数据打开默认的邮件程序撰写窗口,但是我还需要添加一个文件作为附件,并且该文件必须是该应用程序的屏幕截图. 我正在做一些研究,甚至无法找到与此相关的任何东西,有人有什么想法吗? 所有帮助将不胜感激,因为我真的在这里迷路了. 在此先感谢;)

Is it possible to add a attachment to a mail with the mailto function in actionscript 3? Thats the thing, i want to open the default mail program compose window with some data but i also need to add a file as attachment, and that file must be a screen capture of the app. Im doing some research and cant find nothing even close to this, someone have any ideas? All help will be appreciated because im really lost here. Thanks in advance ;)

    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!");
        }
    }

那没有用:(它打开邮件客户端,所有信息都可以,但是没有附加文件

That didnt worked :( it opens the mail client all info is ok but no file attached

第二次

在新的电子邮件客户端中,attachment = path/to/file似乎不再起作用,我认为它可以一直工作到Outlook 97,然后出于安全原因将其删除,因此现在无法再进行此操作. 感谢所有答案,我选择卢卡斯(N. Lucas)的答案是因为他的答案是正确的,只是不可能了.

Looks like the attachment=path/to/file dont work anymore in new email clients, i think it worked until outlook 97 then it was removed for security reasons and so now is imposible to do this anymore. Thanks for all the answers, Im selecting the N. Lucas answer because his answer was right, is just that it is no longer possible.

推荐答案

据我了解,使用& attachment = file仅在本地有效.

From my understanding, using &attachment=file only works locally.

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

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

不起作用.

这篇关于是否可以使用动作脚本3中的mailto功能向邮件添加附件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆