如何使用Mule ESB在smtp中添加多个邮件附件 [英] How to add multiple mail attachment in smtp using Mule ESB

查看:158
本文介绍了如何使用Mule ESB在smtp中添加多个邮件附件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找出有没有办法使用Mule ESB在smtp中添加多个邮件附件。我知道我们可以在Mule消息中添加附件,但是我想要一种可以在Mule消息中添加多个附件的方式该消息将发送到出站smtp端点。
有没有办法通过编写多个附件的Java代码?



提前感谢...

解决方案

重复使用< set-attachment attachmentName =value =contentType =/> 为您的Mule消息添加多个附件。在出站电子邮件中应自动将其转换为MIME附件。


I am trying to find out is there a way to add multiple mail attachment in smtp using Mule ESB.I know we can add attachment in Mule message, but I want a way by which we can add multiple attachment in Mule message before the message goes to the outbound smtp endpoint. Is there a way by writing Java code for multiple attachment ?

Thanks in advance....

解决方案

Use the <set-attachment attachmentName="" value="" contentType="" /> element repeatedly to add several attachments to your Mule message. They should be automatically transformed into MIME attachments in the outbound email message.

这篇关于如何使用Mule ESB在smtp中添加多个邮件附件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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