Hi all,
I am kinda new with batch processing and emails, so I would like you guys to give me a hand with this.
I have a code that calculates the prices of production against the sales orders. If the Productions costs > Sales order then pulls a trigger by code and send Email to specifics recipients.
I have configurated the basics stuff like email parameters and templates. And my code is actually sending the emails into the waiting stack ( ) . but only sends the actual email only if I pressed the ok button in the batch job. where Do I configure it in order to send emails directly after the trigger is pulled (just at the moment the code sends the email).
also How Do I sent to multiple recipients using the SysEmailSystemTable::sendMail()
here the code