How to add inline image to mail to sent it through SMTP in Java?
helper.addInline("contentid", resource);
where resource is ByteArrayResource.
But I am getting NullPointerEcxeption before this line exactly.
helper is MimeMessageHelper.
How to add inline image to mail to sent it through SMTP in Java?
helper.addInline("contentid", resource);
where resource is ByteArrayResource.
But I am getting NullPointerEcxeption before this line exactly.
helper is MimeMessageHelper.