从sql server db mail中的电子邮件地址过来 [英] over ride from email address in sql server db mail

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

问题描述

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

@recipients='recipients_email@gmail.com',

@from_address='Test from address<test_from_email@gmail.com>',
@reply_to='',
@subject='Test message',
@body='This is the body of the test message.
Congrates Database Mail Received By you Successfully.'





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



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

推荐答案

来自MSDN:
[ @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中的电子邮件地址过来的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆