Hi,
I have difficulties getting the scriptfunction email.send to work
This is my script
var email = new email();
email.to = "jpb@nti.dk";
email.subject = "Response on" + item.NAME;
email.body = item.DESCRIPTION;
email.send();
The ERROR i get is attached.
item.Name & item.Description is both present in the workspace, and has data in the fields
Hope someone can give a hint, I have tried nearly everything. Except reset of the tenant
Kind regards
Jesper Brandt
Solved! Go to Solution.
Solved by broepke. Go to Solution.
Remember that JavaScript is case sensitive. I think it's in your first line - chance email() to Email() like the example in the Wiki Help
var email = new Email(); email.to = item.CONTACT_EMAIL; email.subject = 'This is the email subject'; email.body = getPrintView('Basic Item Data View'); email.send()
Couple of other examples if you'd like using email from the 'Feature Friday' series on our blog:
Happy scripting!
Michelle