I am currently working with the Servoy mail plugin to send an email to a certain address.
In the Servoy Server Plugin Settings I have entered a value in the property mail.development.override.address. However, in a particular case I wish to set this value empty before sending an email with the plugin. This is the code I have:
var properties = new Array()
properties[0] = 'mail.development.override.address='
plugins.mail.sendMail( _mailto, _mailfrom, _mailsubject, _mailmessage, null, null, null, properties)
Unfortunately this does not work. I have tried different values such as ‘null’, a space (with and without escaping single quotes) but it keeps throwing an error.
Can someone explain to me how I can pass empty values in the OverrideProperties parameter of the mail plugin?
Kind regards