Can a script retrieve the fromName from the smtpConfiguration?

Any issue about Cyclos 4 scripting and Webservices

Moderators: hugo, alexandre, rmvanarkel

Post Reply
sandrab
Posts: 13
Joined: Tue Sep 11, 2018 8:26 am

Can a script retrieve the fromName from the smtpConfiguration?

Post by sandrab » Tue Sep 11, 2018 9:32 am

Hi,

I can retrieve the fromAddress property of the smtpConfiguration in a groovy script with something like this:

Code: Select all

binding.sessionData.configuration.smtpConfiguration.fromAddress
Is there a similar property to retrieve the fromName as well?

Thanks,
Sandra

Using Cyclos 4.9.1

luis
Posts: 179
Joined: Fri Feb 17, 2006 11:01 am

Re: Can a script retrieve the fromName from the smtpConfiguration?

Post by luis » Wed Sep 12, 2018 8:21 am

You can use the following:

Code: Select all

sessionData.configuration.emailName
Luis Fernando Planella Gonzalez
Cyclos development team

sandrab
Posts: 13
Joined: Tue Sep 11, 2018 8:26 am

Re: Can a script retrieve the fromName from the smtpConfiguration?

Post by sandrab » Thu Sep 13, 2018 6:56 am

Great, thank you!

Post Reply