如何在 SQL Server 中使用 sp_send_dbmail 指定回复地址
我需要向某人发送电子邮件,并希望他们能够简单地回复电子邮件,而无需指定电子邮件地址。
使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不在 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
更新:显然“@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
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