Google Apps脚本 - 如何发送带有回复但掩盖发件人地址的电子邮件?
我的表格已经添加了一个脚本,以便每当提交表单通过时,都会发送电子邮件。当我是表单和脚本所有者时,所有电子邮件都来自我的个人电子邮件。一切都很好,但是最好的情况是,这些电子邮件表明它们来自表格响应的提交者。我认为这不是Google Apps脚本现在可以做的事情,因此我设置了它来捕获提交者的电子邮件地址并将其放在“回复到”字段中。
这效果很好,但是每个人仍然认为这些电子邮件来自我。有什么方法可以掩盖发件人电子邮件地址?如果我将“不终止”设置为真,那么回复对不起作用。我有什么可以用来掩盖我看不到的电子邮件地址的东西吗?
function buildEmailOptions(responses) {
let options = {
replyTo: responses.respondent,
cc: EMAILS_TO_CC + ", " + responses.respondent
};
return options;
}
I have a form that I've added a script to so that whenever a form submission comes through, an email is sent. As I'm the form and script owner, all the emails come from my personal email. This is fine and all, but best case scenario would be for the emails to show that they come from the submitter of the form response. I don't think this is something that Google Apps Script can do right now, so I have it set up to capture the submitter's email address and put it in the "reply-to" field.
This works great, but everyone still thinks the emails are coming from me. Is there a way I can mask the sender email address? If I set "no-reply" to true, then the reply-to won't work. Is there anything I can utilize to mask my email address that I'm not seeing?
function buildEmailOptions(responses) {
let options = {
replyTo: responses.respondent,
cc: EMAILS_TO_CC + ", " + responses.respondent
};
return options;
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不幸的是,Google Apps脚本还没有该功能。您可以使用以下解决方法来解决您的问题:
解决方案
1。使用Google Admin Console创建电子邮件别名
如果您在组织的Google Workspace中具有管理员角色,则可以将电子邮件别名添加到您的帐户中。您可以参考本文:给用户一个替代的“电子邮件别名”地址。如果您没有分配给帐户的管理员角色,则可以联系您的Google Workspace管理员。
2。 为具有@GMail帐户的用户创建另一个帐户
,选项编号1是不可能的。相反,您可以创建/添加另一个帐户并将其链接到您当前的@Gmail帐户。只需遵循本文:从其他地址或别名发送电子邮件。
Unfortunately, Google Apps Script does not have that feature yet. You may use the following workarounds to address your issues:
Workarounds
1. Create Email Aliases Using Google Admin Console
If you have an admin role in your organization's Google Workspace, then you can add email aliases to your account. You can refer to this article: Give a user an alternate "email alias" address. You can contact your Google Workspace admin if you do not have an admin role assigned to your account.
2. Create Another Account
For users with @gmail accounts, option number 1 is not possible. Instead, you can create/add another account and link it to your current @gmail account. Just follow this article: Send emails from a different address or alias.