Announcement Announcement Module
Collapse
No announcement yet.
Error creating an instance of MimeMessageHelper with MULTIPART_MODE_RELATED Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error creating an instance of MimeMessageHelper with MULTIPART_MODE_RELATED

    I am trying to create a MimeMessageHelper with MULTIPART_MODE_RELATED:
    MimeMessageHelper helper = new MimeMessageHelper(msg, MimeMessageHelper.MULTIPART_MODE_RELATED, "UTF-8");

    This compiles just fine, but when I attempt to run this line of code, I get the folllowing exception:

    java.lang.NoSuchMethodError: org.springframework.mail.javamail.MimeMessageHelpe r.<init>(Ljavax/mail/internet/MimeMessage;ILjava/lang/StringV Has anyone seen this error before?

    Thanks,

    Peter

  • #2
    Solved: It was an issue to do with the version of spring that we are using in the runtime.

    Comment

    Working...
    X