[英]SSRS, SQL - Select multiple email addresses as [CC] in Data Driven Subscription
I'm looking to CC 2 people in a Data Driven Subscription 我正在寻找数据驱动订阅中的CC 2人员
Here's what I currently have CC'ing one person 这是我目前正在CC'ing一个人的内容
I've provided little detail I know, let me know if you need anything else 我提供的详细信息很少,如果您需要其他任何信息,请告诉我
SELECT
eUserName as UserName,
er_EMailAddress as [TO],
er_FullName as FullName,
CONVERT(VARCHAR(10),GETDATE(),103) + ' - Outstanding Calls for ' + er_FullName as Subject,
'firstname.surname@domain.com' as [CC]
FROM
xxxxxx.xxxxxxxx
WHERE
er_status = 'Active' and eUserName in ('username1', 'username2')
Simply make sure that the e-mail addresses are separated by ;
只需确保电子邮件地址之间用
;
分隔即可;
, that is [space][semicolon][space]. ,即[空格] [分号] [空格]。
So for example, if you want to send the report to test1@testmail.com and test2@testmail.com, your CC string should look like this: 因此,例如,如果要将报告发送到test1@testmail.com和test2@testmail.com,则CC字符串应如下所示:
test1@testmail.com ; test2@testmail.com
I've sorted it, thanks for your help 我已经整理好了,谢谢你的帮助
it should be: 它应该是:
‘john@company.biz; sue@company.biz’ AS [CC]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.