gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 22:30:28 25 4
gpt4 key购买 nike

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

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

是否可以更改此设置以指定回复,以便看起来像是来 self 。

谢谢。

最佳答案

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

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

但是 SQL Server 2008(2008 R2、2012 等)在 sp_send_dbmail 中确实有一个“回复”参数 (@reply_to = 'yourReplyToEmailAddress'):
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.

关于sql-server - 如何在 SQL Server 中使用 sp_send_dbmail 指定回复地址,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/243966/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com