Outlook邮件在邮件发送到grails之前弹出 [英] Outlook message to pop up before mail is sent in grails

查看:164
本文介绍了Outlook邮件在邮件发送到grails之前弹出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个应用程序,其中点击一个按钮发送带有附件的电子邮件。这个电子邮件的属性在服务方法中是硬编码的,如下面我的服务类。

I have created an application wherein on click of a button an email with attachment is sent. The attributes for this email is hardcoded in the service method as below in my service class.

mailService.sendMail {  
            to   "a@xyz.com"
            from "a@xyz.com"
            cc "a@xyz.com"
            bcc "a@xyz.com"
            subject "Trading System Test Mail"
            body 'Test Mail.'
                 attach 'temp/test.pdf'

}

我要加强这个应用程序,以便点击一个按钮,弹出一个outlook消息框,其中用户可以编辑主题行,身体,cc,bcc等等。

I am to enhance this application so that on click of a button, an outlook message box pops up wherein the user can edit the subject line, body,cc, bcc etc before it can be sent.

想法?样本代码

谢谢

推荐答案

Grails的邮件插件正在服务器端。所以没有可能打开一个客户端的Outlook窗口。
所以你需要的是在客户端处理这个问题,但这会导致附件出现问题。

The mail-Plugin of Grails is working on serverside. So there is no possibility to open a client side outlook message window. So what you need is to handle this on client side but that will cause a problem with the attachments.

没有准备好使用库,插件或你可以用这样做的东西。

There is no ready to use library, plugin or something you can use to do so.

这篇关于Outlook邮件在邮件发送到grails之前弹出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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