In the context of email marketing, "attach the invoice" refers to the practice of including an invoice as an attachment in an email. This is often used for transactional emails sent to customers post-purchase. The invoice serves as a formal record of the transaction, providing detailed information about the purchase, payment, and other relevant details.