【发布时间】:2012-10-19 05:13:33
【问题描述】:
我尝试使用 seam 2.3.0.Final 和 jbossAs 7.0.2 发送邮件
我用接缝设备发送邮件,我的 bean 代码:
String path = /** some Path to email template**/
try
{
renderer.render(path);
}
catch (Exception e)
{
log.error(e.getMessage());
throw new Exception(e);
}
在我的 component.xml 中:
<mail:mail-session host="smtp.gmail.com"
username="user@domain.com"
password="xxxx"
ssl="true"
tls="false"
port="465"/>
我知道 JBossAs 7.1.x 支持邮件(允许 jndi 的邮件会话配置),但这不是我们的选择。
当我发送电子邮件时,我收到此错误:
javax.mail.NoSuchProviderException: No provider for smtps
是我遗漏了什么还是不可能这样?如果没有,您认为有解决方法吗?
【问题讨论】: