python - Sendgrid 外发电子邮件将显示在我的已发送邮箱中

标签 python email smtp gmail sendgrid

我目前正在使用 sendgrid 发送电子邮件:

    DEFAULT_FROM_EMAIL = '<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="9efaffe8f7fadef9f3fff7f2b0fdf1f3" rel="noreferrer noopener nofollow">[email protected]</a>'
    email = EmailMessage(subject, message, DEFAULT_FROM_EMAIL, TO_EMAILS)
    email.send()

但是,当我转到 Gmail 中的已发送邮箱时,该电子邮件并未显示。有没有办法让我从 Sendgrid 发送电子邮件时,它会显示在 Gmail 上我的已发送邮箱中,以保留记录?

最佳答案

SendGrid 的 BCC app将允许您在发送的每封电子邮件中密件抄送某个电子邮件地址(在本例中为您的 Gmail 帐户);尽管您仍然无法过滤它以发送邮件。可以找到它的文档 here .

关于python - Sendgrid 外发电子邮件将显示在我的已发送邮箱中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24357252/

相关文章:

jquery - web2py 将 python 嵌入到 jQuery 中

html - Outlook 在 HTML 电子邮件中的超链接后在方括号中添加目标 URL

c# - 纯文本 mime 电子邮件发送至 MailMessage

Android Parse 使用电子邮件或用户名登录

c# - Azure队列存储不发送队列消息

Java 邮件异常。无法连接到 SMTP 主机 : localhost, 端口:25;

node.js - vmc push Errno::ENOENT: 没有这样的文件或目录

python - "Can' t 分配给运算符“使用字典时出错

python - Pandas:简单的生长分析(比较)和 Fillna

python - 如何测试可变的隐含结果?