mocoxk opened a new issue, #5338:
URL: https://github.com/apache/hop/issues/5338

   ### Apache Hop version?
   
   2.14
   
   ### Java version?
   
   openjdk 21.0.7 2025-04-15 LTS
   
   ### Operating system
   
   Windows
   
   ### What happened?
   
   ## Issue: Problems with Mail Attachments After Upgrading from Apache Hop 
2.13 to 2.14
   
   ### Description
   
   After upgrading from Apache Hop 2.13 to 2.14, I experienced issues with 
sending emails that have attachments in my workflow. Specifically:
   
   - The attachments are not being sent with the email.
   - In the "Mail" action, under the "Attached Files" tab, the file type 
selection is not saved or displayed in the UI, even though it is specified in 
the XML configuration.
   
   ### Technical Details
   
   Upon reviewing the XML configuration files between versions 2.13 and 2.14, I 
noticed a change in the structure for specifying file types:
   
   **In 2.13:**
   ```xml
   <filetypes>
       <filetype>GENERAL</filetype>
   </filetypes>
   ```
   
   **In 2.14:**
   ```xml
   <fileTypes>
       <fileType>General</fileType>
   </fileTypes>
   ```
   
   It seems that the change in the XML tags and the case sensitivity of the 
values might be causing the issue.
   
   Additionally, I had to manually edit the workflow `.hwf` files using VS Code 
to update the tag to the new format. Only after making this change did the 
email sending with attachments start working again.
   
   ### Steps to Reproduce
   
   1. Upgrade a workflow from Apache Hop 2.13 to 2.14.
   2. Configure a "Mail" action with attached files.
   3. Save and reopen the workflow.
   4. Check the "Attached Files" tab and attempt to send emails with 
attachments.
   
   2.13
   
   
![Image](https://github.com/user-attachments/assets/4d126132-276f-4b39-9247-657179207109)
   
   2.14
   
   
![Image](https://github.com/user-attachments/assets/deaa50f3-44b0-4d29-92b4-aeb7698d5cce)
   
   
   ### Issue Priority
   
   Priority: 2
   
   ### Issue Component
   
   Component: Actions


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to