send_email_with_custom_config
Send emails using custom SMTP server configurations, including TLS/SSL settings, attachments, and CC/BCC recipients.
Instructions
使用自定义SMTP配置发送邮件
Args: receiver_emails: 收件人邮箱地址列表 subject: 邮件主题 content: 邮件内容 smtp_server: SMTP服务器地址(如:smtp.qq.com, smtp.gmail.com) smtp_port: SMTP端口(25/465/587) sender_email: 发件人邮箱 sender_password: 发件人密码或授权码 content_type: 内容类型,'plain' 或 'html' use_tls: 是否使用TLS(端口587通常需要) use_ssl: 是否使用SSL(端口465通常需要) attachments: 附件文件路径列表(可选) cc_emails: 抄送邮箱地址列表(可选) bcc_emails: 密送邮箱地址列表(可选)
Returns: 发送结果信息
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"receiver_emails": "<receiver_emails>",
"subject": "<subject>",
"content": "<content>",
"smtp_server": "<smtp_server>",
"smtp_port": "<smtp_port>",
"sender_email": "<sender_email>",
"sender_password": "<sender_password>"
},
"name": "send_email_with_custom_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| receiver_emails | Yes | ||
| subject | Yes | ||
| content | Yes | ||
| smtp_server | Yes | ||
| smtp_port | Yes | ||
| sender_email | Yes | ||
| sender_password | Yes | ||
| content_type | No | plain | |
| use_tls | No | ||
| use_ssl | No | ||
| attachments | No | ||
| cc_emails | No | ||
| bcc_emails | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |