mirror of
https://github.com/langgenius/dify-plugins.git
synced 2026-07-22 10:05:47 -04:00
smtp tool cant not work when Send emails to multiple people #100
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 @agoraphobiaX on GitHub (Jun 15, 2025).
Self Checks
Dify version
1.4.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
smtp tool cant not work when Send emails to multiple people。
Failed to transform tool message: PluginInvokeError: {"args":{},"error_type":"ValidationError","message":"1 validation error for SendEmailToolParameters\nsender_address\n Field required [type=missing, input_value={'smtp_server': 'smtp.yn....], 'bcc_recipients': []}, input_type=dict]\n For further information visit https://errors.pydantic.dev/2.8/v/missing"}
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
@dosubot[bot] commented on GitHub (Jun 15, 2025):
The error happens because the required sender_address field is missing from the parameters when sending to multiple recipients. This is likely due to how the parameters are constructed and passed to the SMTP tool—if sender_address is omitted or set to None, Pydantic validation fails and you get this error.
To resolve this, make sure that sender_address is always included in the tool parameters, regardless of how many recipients you have. Double-check your workflow or plugin configuration to ensure sender_address is set and not accidentally dropped when building the parameter dictionary for multi-recipient sends. Also, confirm that your MAIL_DEFAULT_SEND_FROM is set in your environment or config, as this is used as a fallback if sender_address is not provided directly (source).
If you’re customizing the workflow, review the parameter generation logic to ensure sender_address is always present, especially in multi-recipient scenarios (source). This should resolve the validation error and allow emails to be sent to multiple people.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other

@agoraphobiaX commented on GitHub (Jun 15, 2025):
how to make sure that sender_address is always included in the tool parameters?
becaues when i send mail to one person it works.
@crazywoola commented on GitHub (Feb 3, 2026):
Hi @agoraphobiaX, thanks for opening this issue.
Why this is being closed
Dify issue tracking requires English-only issue title and description for consistent collaboration.
Next steps
Please open a new issue in English and include clear details so maintainers can help efficiently.
Thanks for understanding and for your support.