-
-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Attachment Support for Mail Executor #812
Comments
It can have fields for mail server configuration like smtp or tls with port configuration. What about passwords for user accounts? How to store them? |
Good idea! Currently Dagu's |
Yeah I saw in the reference documentation for dag level settings. We could add support for TLS in dag level settings. |
Currently, the mail executor sends plain text emails without file attachments. We should extend its functionality to include an
attachments
field in the configuration, allowing users to specify one or more file paths to attach to outgoing emails.How to Implement:
Extend the Configuration Schema:
Add an
Attachments
field (a slice of strings) to the mail executor’s configuration structure. For example:Update the Mail Sending Logic:
Modify the mail executor code that builds and sends the email to loop through the
Attachments
list and attach each file. Be sure to include file existence checks and error handling.Update Documentation and Examples:
Add an example in the documentation to show how to use the new field in a DAG file.
Example Usage in a DAG File:
The text was updated successfully, but these errors were encountered: