开发者

Outlook message to pop up before mail is sent in 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开发者_JAVA百科"
            body 'Test Mail.'
                 attach 'temp/test.pdf'

}

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.

Thoughts?Sample Code??

Thanks!


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.


One more link that explains the Javascript handling of this issue:

http://www.outlookcode.com/d/code/formonweb.htm

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜