I use the same address for sender and receiver.
For manual example (logic from controller) it works but for Managed Bean doesn’t.
EmailInfo emailInfo = new EmailInfo( "firstname.lastname@example.org", // recipients
“Cotation”, // subject
“Overdue Cotation” + “\n\n” + crmToken + “\n\n” + date,
“text/plain; charset=UTF-8”// the “from” address will be taken from the “cuba.email.fromAddress” app property
Emailer JMX bean works fine. I can send test emails from console (ssl or smtp). In conclusion, I assume the email properties are correct.
Administration > Email History is ok, too. I have sender, receiver, body email, everything, but all emails are in Queue.
Indeed I don’t use Cuba_Emailer.processQueuedEmails() method. Can you give an implementation example?
You don’t need to implement it; it’s part of the framework. You just call it as a scheduled task as shown in @kenince.mbithi’s example. The bean will run on a schedule and check for messages in the queue and dispatch them for you.
Yes I set a scheduler. Scheduling Type cron. At the set time email sequence is sent. Nevertheless I don’t have any issues in deploy/tomcat/log. But all emails stay in queue. Maybe an “emailinfo” object example may be helpful.