Create Workflow
。 const messages = [
"📢 每日提醒:記得喝水 💧",
"📢 每日提醒:起來伸展一下 🧘",
"📢 每日提醒:保持專注 🔥"
];
const randomMsg = messages[Math.floor(Math.random() * messages.length)];
return [{
json: {
subject: "每日提醒",
text: randomMsg
}
}];
smtp.gmail.com
465
(SSL)={{$json["subject"]}}
={{$json["body"]}}
方式 | 優點 | 缺點 | 適用情境 |
---|---|---|---|
OAuth | 安全性高、不需存密碼 | 設定稍複雜,需要雲端授權 | 使用 Gmail/企業 Google Workspace |
SMTP | 簡單直覺,通用所有郵件服務 | 需要保存帳密,安全性略低 | 使用非 Google 的郵件服務(Yahoo、Outlook、自架郵件) |