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 ,to_someone_else@testing.com', 'From Servoy XMLR Project<abk@stanford.edu>', 'XMRL project has been assigned to you', msgText + projdsc,null,'unnamed@testing.com');
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 ,to_someone_else@testing.com', servoy errors out.
Please let me know how I can fix this.
Thanks for any help.
Abrahim