correctly reset to_send for attachments