简体   繁体   English

使用 groovy 从 Email 读取/下载附件

[英]Reading/downloading attachment from Email using groovy

Is it possible to download outlook email attachments using Groovy or count how many attachments are there in the email?是否可以使用 Groovy 下载 outlook email 附件或计算 Z0C83ZF57C7876A07BA 中有多少附件? I'm trying to write a code where I can use the no.我正在尝试编写一个可以使用 no 的代码。 of attachments further.进一步的附件。 I've seen examples for downlaodin content from url but not from Emails.我从 url 中看到了下载内容的示例,但没有从电子邮件中看到。

Is it possible to download outlook email attachments using Groovy or count how many attachments are there in the email?是否可以使用 Groovy 下载 outlook email 附件或计算 Z0C83ZF57C7876A07BA 中有多少附件?

It is.这是。 There are many many libraries to help you do that.有许多库可以帮助您做到这一点。

The particulars of how to do it depend on knowing more about your application.如何做到这一点的细节取决于对您的应用程序的更多了解。 For example, if you are doing this in a web application that is built with Grails, the org.grails.plugins:mail plugin will help.例如,如果您在使用 Grails 构建的 web 应用程序中执行此操作,则org.grails.plugins:mail插件将有所帮助。

Specific recommendations for how best do this depend on more info, but you can definitely do this with Groovy.如何最好地做到这一点的具体建议取决于更多信息,但您绝对可以使用 Groovy 做到这一点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM