Uploaded image for project: 'Magnolia Mail Module'
  1. Magnolia Mail Module
  2. MGNLMAIL-158

Mail tools app can't send mail with attachments

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 5.6.1
    • 5.6.0
    • None
    • None

      Steps to reproduce

      1. open mail tools app
      2. choose an assets to send
      3. click send

      An error message pops up.

      In log following message will be logged:

      ERROR info.magnolia.module.mail.app.verify.MailVerifyPresenter 31.03.2023 09:58:01 – Unable to send email.
      java.io.FileNotFoundException: blume.jpg (Permission denied)
              at java.io.FileOutputStream.open0(Native Method) ~[?:1.8.0_362]
              at java.io.FileOutputStream.open(FileOutputStream.java:270) ~[?:1.8.0_362]
              at java.io.FileOutputStream.<init>(FileOutputStream.java:213) ~[?:1.8.0_362]
              at java.io.FileOutputStream.<init>(FileOutputStream.java:162) ~[?:1.8.0_362]
              at info.magnolia.module.mail.app.verify.MailVerifyPresenter.sendSimpleMail(MailVerifyPresenter.java:178) [magnolia-module-mail-5.6.jar:?]
              at info.magnolia.module.mail.app.verify.MailVerifyViewImpl$1.buttonClick(MailVerifyViewImpl.java:75) [magnolia-module-mail-5.6.jar:?]

      Expected results

      Mail should be send with attachments.

      Development notes

      Reason is that the temp files will be created at root in the filesystem and not in the temporary folder.

      While debugging I found the file here:

        Acceptance criteria

              mdivilek Milan Divilek
              frank.sommer Frank Sommer
              DeveloperX
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved:
                Work Started:

                  Bug DoR
                  Task DoD