Mail job stuck after contact marked deceased
Mail job gets stuck when a contact's email was placed on hold after draft creation - an additional condition needs to be added in order to skip deceased contacts if they are included in the mail group.
This is same for deceased contact, his preference changes or if contact's email is no longer primary.
Steps to replicate:
- Create a mailing with contacts and schedule it.
- Edit one of the contact to make it deceased.
- Run the scheduled job, it get stuck and no mailing goes out.
Desired behavior - mailings to all contacts except deceased should go out.