When emailing invoices through the ‘Print Invoices and Memos’ screen, the invoices get marked as ‘Emailed’ even if the process encounters errors and the emails do not send.
The emailed status should only be updated to ‘Emailed’ once the email is successfully sent and not when the process errors out.