在GAE中发送电子邮件时出现以下错误。这突然停止了工作。有人可以帮助我理解问题的出现位置,或者任何调试想法都会被理解。正如你从附图中看到的,我很喜欢我的配额。MailService IO失败(java.io.IOException:内部错误)
MailService的IO失败(产生java.io.IOException:内部错误)
public boolean email(final Player to, List<Player> players)
{
Properties props = new Properties();
Session session = Session.getDefaultInstance(props, null);
try
{
Message msg = new MimeMessage(session);
msg.setFrom(new InternetAddress("[email protected]"));
msg.addRecipient(Message.RecipientType.TO, new InternetAddress(to.getEmail()));
msg.addRecipient(Message.RecipientType.CC, new InternetAddress("[email protected]"));
msg.addRecipient(Message.RecipientType.CC, new InternetAddress("[email protected]"));
msg.setSubject("Registration confirmation.");
msg.setText("tx for registering");
logger.info("sending email to " + to.getEmail());
logger.info(msgBody.toString());
Transport.send(msg);
logger.info("sent email to " + to.getEmail());
}
catch (AddressException e)
{
return false;
}
catch (MessagingException e)
{
return false;
}
return true;
}
您是否检查仪表板日志?有什么吗? – maneesh
仪表板页面或管理日志中没有什么特别的东西 –
只是想一想:您是否可能从应用程序管理员列表中删除了[email protected]帐户? – maneesh