本文介绍了从sql server db mail中的电子邮件地址过来的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

EXEC msdb.dbo.sp_send_dbmail @profile_name='testprofile',

@recipients='[email protected]',

@from_address='Test from address<[email protected]>',
@reply_to='',
@subject='Test message',
@body='This is the body of the test message.
Congrates Database Mail Received By you Successfully.'





在使用此代码的sql server 2008中,邮件发送并且从地址覆盖,但从地址不覆盖[email protected],从地址保持与配置文件电子邮件地址相同,如何超过这个,请建议我这样做。



In sql server 2008 using this code,mail send and from address is override,but from address not override with [email protected] ,from address remain same as profile email address,how to over ride this also,plese suggest me to do this .

推荐答案

[ @from_address= ] 'from_address'
Is the value of the 'from address' of the email message. 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.





因此,您的安全设置可能会导致忽略此设置。



So, your security settings can cause this setting to be ignored.


这篇关于从sql server db mail中的电子邮件地址过来的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 07:12