please, use the built-in search in the online docs for trivial things like this, and do not rely on forum members to do the search for you, or your post will likely be ignored at all…
Hi,
Have you solved the problem?
There is an ability to test platfrom emailer in the running application.
Open Administration -> JMX Console and find “Emailer”. There you can define connection params and send test emails.
Yes problem is solved.
System antivirus is blocking the email functionality, but I disabled Avast antivirus in my system then it worked.
I have integrated this email in my custom web application from service method
This issue will be fixed in this ticket: YouTrack.
But you are able to fix it by yourself.
Firstly, you should replace the implementation of com.haulmont.cuba.core.app.EmailSenderAPI - com.haulmont.cuba.core.app.EmailSender.
Secondly, you should override createAttachmentPart method and do this fix:
// Wrap 'name' parameter value
String contentTypeValue = String.format("%s; charset=%s; name=%s", mimeType, charset, encodedFileName);
// In this way:
String contentTypeValue = String.format("%s; charset=%s; name=\"%s\"", mimeType, charset, encodedFileName);