如何在 SQL Server 中使用 sp_send_dbmail 指定回复地址

发布于 2024-07-08 04:53:22 字数 151 浏览 14 评论 0原文

我需要向某人发送电子邮件,并希望他们能够简单地回复电子邮件,而无需指定电子邮件地址。

使用 sp_send_dbmail 将回复地址设置为发送该邮件的配置文件的名称。

可以将其更改为指定回复,以便它看起来像是来自我的吗?

谢谢。

I need to send an email to someone and want them to be able to simply reply to the email without having to specify the email address.

Using sp_send_dbmail sets the reply-to address as the name of the profile that it was sent from.

Can this be changed to specify the reply-to so it looks like it came from me.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

九八野马 2024-07-15 04:53:23

不在 sp send dbmail 本身中

回复地址只是文本,可以在配置文件中设置。

例如,我配置 [email protected] 但电子邮件帐户是 [email protected]

点击回复,它会转到 [email protected]

因此,配置 sp 使用的个人资料以显示这一点。

该行显示“在传出电子邮件中显示的电子邮件地址。 ” 此处

sp 发送 dbmail 帮助。 回复地址无参数

Not in sp send dbmail itself

The reply address is just text and can be set up in the profile.

Eg I configure [email protected] but the email account is [email protected]

Hit reply and it goes to [email protected]

So, configure your profile used by the sp thus to show this.

The line saying "The e-mail address to show on outgoing e-mail messages." here

sp send dbmail help. no parameter for reply address

梦回梦里 2024-07-15 04:53:22

更新:显然“@reply_to”参数是在 SQL Server 2008 中添加的。SQL

Server 2005 在 sp_send_dbmail 中没有“reply to”参数:
http://msdn.microsoft.com/ en-us/library/ms190307%28v=sql.90%29.aspx

但是 SQL Server 2008(2008 R2、2012 等)确实有一个“回复”参数(@reply_to = 'yourReplyToEmailAddress') ,在 sp_send_dbmail 中:
http://msdn.microsoft.com/ en-us/library/ms190307%28v=sql.100%29.aspx

[ @reply_to= ] 'reply_to'
     是电子邮件的“回复地址”的值。 它仅接受一个电子邮件地址作为有效值。 这是一个可选参数,用于覆盖邮件配置文件中的设置。 该参数的类型为 varchar(MAX)。 SMTP 安全设置决定是否接受这些覆盖。 如果没有指定参数,则默认为NULL。

Update: apparently the "@reply_to" parameter was added in SQL Server 2008.

SQL Server 2005 has no "reply to" parameter in sp_send_dbmail:
http://msdn.microsoft.com/en-us/library/ms190307%28v=sql.90%29.aspx

But SQL Server 2008 (2008 R2, 2012, etc.) does have a "reply to" parameter (@reply_to = 'yourReplyToEmailAddress'), in sp_send_dbmail:
http://msdn.microsoft.com/en-us/library/ms190307%28v=sql.100%29.aspx

[ @reply_to= ] 'reply_to'
      Is the value of the 'reply to address' of the email message. It accepts only one email address as a valid value. This is an optional parameter used to override the settings in the mail profile. This parameter is of type varchar(MAX). SMTP security settings determine if these overrides are accepted. If no parameter is specified, the default is NULL.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文