Hi all,
I have the following method that suppose to send email to the users:
//globals.tx3 gets populated with the users email address
var user = globals.tx3
// task_name projects task name
var msgText = task_name
// project_description
var projdsc = project_description
// Projects comments
var comm = comments
var succes = plugins.mail.sendMail('user ,[email protected]', 'From Servoy XMLR Project<[email protected]>', 'XMRL project has been assigned to you', msgText + projdsc,null,'[email protected]');
if (!succes)
{
plugins.dialogs.showWarningDialog('Alert','Failed to send mail','OK');
}
The globals.tx3 gets updated with the user's email address.
When I replace the email address with the variable user in var succes = plugins.mail.sendMail('user ,[email protected]', servoy errors out.
Please let me know how I can fix this.
Thanks for any help.
Abrahim