LILY-339: Sending attachments works with async sending of emails