{
"accountId": "email_account_001",
"from": "sender@example.com",
"to": "recipient@example.com",
"subject": "系统通知",
"body": "这是一封测试邮件",
"bodyFormat": false
}{
"accountId": "email_account_001",
"from": "sender@example.com",
"to": "recipient@example.com",
"subject": "HTML报告",
"body": "<h1>报告标题</h1><p>报告内容...</p>",
"bodyFormat": true
}{
"accountId": "email_account_001",
"from": "sender@example.com",
"to": "recipient@example.com",
"cc": "cc1@example.com,cc2@example.com",
"subject": "重要通知",
"body": "请注意查看附件",
"bodyFormat": false
}{
"accountId": "email_account_001",
"from": "sender@example.com",
"to": "recipient@example.com",
"subject": "报表文件",
"body": "请查收附件中的报表文件",
"bodyFormat": false,
"attachmentUrl": "https://example.com/report.pdf,https://example.com/chart.png"
}{
"accountId": "email_account_001",
"from": "sender@example.com",
"to": "${user.email}",
"subject": "欢迎 ${user.name}",
"body": "亲爱的${user.name},您的账号已激活",
"bodyFormat": false
}{
"smtpHost": "smtp.gmail.com",
"smtpPort": 587,
"starttls": true,
"username": "your-email@gmail.com",
"password": "your-app-password"
}{
"smtpHost": "smtp-mail.outlook.com",
"smtpPort": 587,
"starttls": true,
"username": "your-email@outlook.com",
"password": "your-password"
}{
"smtpHost": "mail.company.com",
"smtpPort": 465,
"starttls": false,
"username": "user@company.com",
"password": "password"
}{
"result": true,
"msg": "邮件发送成功"
}{
"result": true,
"msg": "邮件发送成功"
}{
"result": false,
"msg": "身份验证失败,用户名或密码错误"
}https://example.com/file.pdfurl1,url2,url3{
"subject": "订单 ${order.id} 确认",
"body": "尊敬的${customer.name},您的订单${order.id}已确认,总金额${order.amount}元"
}Loop (遍历用户列表)
├── EmailAction (发送个性化邮件)
└── SleepAction (控制发送频率){
"rateLimit": {
"maxPerMinute": 10,
"delayMs": 6000
}
}