Variables in Email

User4677 (9 posts)
May 23, 2017 09:01 AM
Accepted Answer

Hello,

 

Is it possible de use variables in the To/CC or Bcc field? 

 

I'm using Project Editor 2.4.

 

Thank you !

Bill Staff (601 posts)
May 23, 2017 12:12 PM
Accepted Answer
Yes. This isn't documented in the help but it should work for either the Project Editor or the Command Line Builder/Command Runner.
User4677 (9 posts)
May 23, 2017 12:14 PM
Accepted Answer
ok thanks, I must doing something wrong because I'm getting invalid email address. 
Bill Staff (601 posts)
May 23, 2017 12:22 PM
Accepted Answer

I tested and it worked correctly for me. Where is the error message coming from--Report Commander or the mail server?

You need need to have a variable defined with a single e-mail address. Then use the variable as the Address for the recipient. For example, set variable "ToAddress" to "[email protected]". Set the recipient to "${ToAddress}".

If you're trying to use a variable to specify multiple recipients that won't work. You  need to use a distribution list instead.

User4677 (9 posts)
May 23, 2017 12:32 PM
Accepted Answer

ok finally I found my error, I was putting double single quotes in my code when I didn't needed.

 

Thanks for you help, everything is working fine.

Replies are disabled for this topic.