mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[email plugin] send_mail_batch.py does not use sender_address, causing SES integration to fail #244
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sanokenichiro-alsi on GitHub (Apr 30, 2025).
Self Checks
Dify version
1.3.1
Plugin version
0.0.7
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Hello,
I have never developed OSS application so I want somebody to fix this issue.
This is email plugin issue.
In send_mail.py, the sender email address used for header (From:) is correctly taken from the sender_address credential, falling back to email_account. However, send_mail_batch.py only uses email_account, which often holds a non-email SMTP username (e.g., for Amazon SES). This causes the validation check for email format to fail with:
"Invalid parameter userid, the sender is not a mailbox"
Suggested fix :
Use sender_address = self.runtime.credentials.get("sender_address", sender) or sender in send_mail_batch.py just like in send_mail.py, and pass it to SendEmailToolParameters.
Best regards,
Sano
✔️ Error log
No response
@adithya-adee commented on GitHub (May 19, 2025):
Hey!! @sanokenichiro-alsi
I would love to work on this issue and fix the bug. I would try to fix this bug & make sure it works perfectly.
If this issue is still open, can you assign me this?
@sanokenichiro-alsi commented on GitHub (May 31, 2025):
@adithya-adee Thank you so much.
I don't have permission to assign this issue to you.
@dosubot[bot] commented on GitHub (Aug 19, 2025):
Hi, @sanokenichiro-alsi. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.
Issue Summary:
send_mail_batch.pydoes not use thesender_addresscredential, causing Amazon SES integration to fail.send_mail_batch.pyto usesender_addresssimilarly tosend_mail.py.Next Steps:
Thank you for your understanding and contribution!