我坚持不能解决发送带有附件的电子邮件的问题。Failed messages: javax.mail.MessagingException: IOException while sending message;nested=smtp.gmail.comspring.mail.username=xyz@gmail.com
spring
我试图通过Spring3的MailSender发送一个使用JavaMail的附件,但是我一直收到这个错误:
org.springframework.mail.MailPreparationException: Could not prepare mail; nested exception is java.lang.IllegalArgumentException: Passed-in Resource我已经找到并遵循了别人的建议(例如,),但我不明白为什么我的InputStream会被