You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何使用AppleScript设置Outlook POP账户的发件人

Outlook AppleScript 自定义发件账户解决方案

你只需要在原有脚本中新增一行指定发件账户的代码即可,Outlook 识别到指定发件账户后,会自动加载该账户对应的预设签名,无需额外配置签名相关逻辑。

修改后完整脚本

tell application "Microsoft Outlook"
set theContent to "Mail Content etc."
-- 创建新邮件
set theMessage to make new outgoing message with properties {subject:(("Month ") & (do shell script "date '+%m'")), content:theContent}
-- 新增行:指定发件账户,替换为你实际要用的POP账户邮箱地址
set sender of theMessage to account "your-target-account@mail.com"
-- 添加收件人
make new recipient with properties {email address:{address:"to@mail.com"}} at end of to recipients of theMessage
make new recipient with properties {email address:{address:"to@mail.com"}} at end of cc recipients of theMessage
open theMessage
end tell

注意事项

  • 将代码中的your-target-account@mail.com替换为你需要使用的POP账户的完整邮箱地址,需要和 Outlook 账户设置中存储的地址完全一致
  • 如果你已经在 Outlook 客户端中为该账户配置了默认签名,脚本生成的邮件会自动套用对应签名,无需额外编写签名控制代码
  • 如果需要动态选择账户,可以把固定邮箱地址替换为列表选择逻辑,按需选择即可

内容的提问来源于stack exchange,提问作者ChangeAgent

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.09.24 11:54:04