.. include:: ../../../../Includes.rst.txt .. _mail_attachments: ================= Email attachments ================= Email attachments can be configured as shown below. .. code-block:: typoscript :caption: Can be set in e.g. EXT:sitepackage/Configuration/TypoScript/setup.typoscript plugin.tx_cart { mail { // Used for emails sent to the customer (=buyer) buyer { attachments { 1 = EXT:sitepackage/Resources/Public/Files/AGB.pdf } // This needs EXT:cart_pdf to work! attachDocuments { order = 1 invoice = 1 delivery = 1 } } // Used for emails sent to the shop owner (=seller) seller { attachments { 1 = EXT:sitepackage/Resources/Public/Files/AGB.pdf } // This needs EXT:cart_pdf to work! attachDocuments { order = 1 invoice = 1 delivery = 1 } } } } plugin.tx_cart.mail =================== .. confval:: buyer.attachments. :Type: array Defines one or more email attachments to be sent to the buyer. These can be, for example, documents with the general terms and conditions. .. confval:: buyer.attachDocuments. :Type: array **This needs EXT:cart_pdf to work.** Defines one or more email attachments of the generated PDF documents to be sent to the buyer. This can be the order confirmation, the invoice or a separate document. .. confval:: seller.attachments. :Type: array Defines one or more email attachments to be sent to the seller. These can be, for example, documents with the general terms and conditions. .. confval:: seller.attachDocuments. :Type: array **This needs EXT:cart_pdf to work.** Defines one or more email attachments of the generated PDF documents to be sent to the seller. This can be the order confirmation, the invoice or a separate document.