Idea Summary
add the concept of “priority” in the APEX mail queue to prioritise some important emails like OTP or password reset emails over all other emails in the mail queue
Use Case
We have a system that sending thousands of emails at once, those emails are notifications for tasks assigned to users to start their tasks in the platform.
in the same time, we have other users who might forogot their password and need to reset their passwords, if they decided to use the forgot password option, the system will put the password recovery in the mail queue, which will be frustrating to wait 10 minutes until the queue cleared completely and reach to the password recovery email.
Adding a new option to push an email as a priority over all emails in the queue will be very helpfull.
Preferred Solution (Optional)
Add a new optional parameter to the apex_mail.send
or add a new function that picking specific email to be sent immediatly wothout going to the mail queue.