Uploaded image for project: 'Commons Email'
  1. Commons Email
  2. EMAIL-123

Misleading exception message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.2
    • 1.3

    Description

      I'm not too experienced with filing bug reports and I don't know how to make a patch file, so I'll just do it like this. I also don't know whether this is fixed already in an unreleased version... But I just hope I can help.

      On line 1240 of Email.java in version 1.2 of Commons Email, the message of the exception is extended with this.getSmtpPort. This is incorrect; this should be something like:

      (this.isSSL()?this.getSslSmtpPort():this.getSmtpPort())

      Else it results in questions like http://stackoverflow.com/questions/13951322/javamail-email-commons-empty-message-gives-strange-error

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bartlaarhoven Bart Laarhoven
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: