cancel
Showing results for 
Search instead for 
Did you mean: 

Sending Emails: No mimeContent

moffel
Champ in-the-making
Champ in-the-making
Hi,

I'm trying to send periodical emails within a workflow. I've added the following code:
<javascript>
var mail = actions.create("mail");
mail.parameters.to = bpm_assignee.properties["cm:email"];
mail.parameters.subject = "Review";
mail.parameters.from = "xx@xx.de";
mail.parameters.text = "Workflow: " + bpm_workflowDescription;
mail.execute(bpm_package);
</javascript>

The code is executet correctly, but there seems to be an error with the content of the mail. I'm getting the following Mail errore:

[org.alfresco.repo.action.executer.MailActionExecuter] [pool-15-thread-2] Failed to send email to xx@yy.de
org.springframework.mail.MailSendException: Failed messages: javax.mail.MessagingException: No MimeMessage content; message exception details (1) are:
Failed message 1:
javax.mail.MessagingException: No MimeMessage content


Can anybody help me?
2 REPLIES 2

hiten_rastogi1
Star Contributor
Star Contributor
Hi Moffel,

I am facing exactly the same error, can you please let me know the solution for this ??

For anyone facing the same issue please do the following to get it working:

1. Add the following in the mail script <strong>mail.parameters.text = "test";</strong>
2. Add <strong>mail.header=</strong> in my alfresco-global.properties email configuration

Redeploy the workflow to get it working.

Thanks
Hiten Rastogi