CMDBuild Forum

About API: newMail

Hi,

when I use the API newMail in the Task script like this:

 

cmdb.newMail()

.withFrom(“fromaddress@somemail.com”)

.withTo(“toaddress@somemail.com”)

.withCc(“ccaddress@somemail.com”)

.withSubject(“Mail subject”)

.withContent(“Mail content”)

.send();

 

 CMDB show the error like this:

Error: org.cmdbuild.workflow.CMWorkflowException: org.enhydra.shark.api.internal.toolagent.ToolAgentGeneralException: Sourced file: eval stream : Method Invocation send
Does anyone know that  how to solve this problem? Thanks!