Email addresses
Email addresses must be configured for sending emails. This can be done in the backend in the plugin settings, but also configured via TypoScript.
plugin.tx_cart {
mail {
// Used for emails sent to the customer (=buyer)
buyer {
fromName = Your Brand name
fromAddress = cart.buyer.sender@example.com
ccAddress = cart.buyer.cc1@example.com, cart.buyer.cc2@example.com
bccAddress = cart.buyer.bcc1@example.com, cart.buyer.bcc2@example.com
replyToAddress = cart.buyer.reply@example.com
}
// Used for emails sent to the shop owner (=seller)
seller {
fromName = Cart TYPO3 System
fromAddress = cart.seller.sender@example.com
toAddress = cart.seller.to1@example.com, cart.seller.to2@example.com
ccAddress = cart.seller.cc1@example.com, cart.seller.cc2@example.com
bccAddress = cart.seller.bcc1@example.com, cart.seller.bcc2@example.com
}
}
}
plugin.tx_cart.mail
-
- Type
-
string
Name displayed for the email address sent to the buyer (=customer).
-
- Type
-
string
Defines from which sender address the emails are sent to the buyer.
-
- Type
-
string
Defines to which addresses the email should be sent in CC (Carbon Copy).
Multiple recipients can be given separated by commas.
-
- Type
-
string
Defines to which addresses the email should be sent in BCC (Blind Carbon Copy).
Multiple recipients can be given separated by commas.
-
- Type
-
string
Defines to which address should be used as Reply To. This will override the
['MAIL']configuration.['default Mail Reply To Address']
-
- Type
-
string
Name displayed for the email address sent to the seller (=shop owner).
-
- Type
-
string
Defines from which sender address the emails are sent to the seller/shop operator.
-
- Type
-
string
Defines to which recipient addresses the emails to the seller/shop operator are sent.
Multiple recipients can be given separated by commas.
-
- Type
-
string
Defines to which addresses the email should be sent in CC (Carbon Copy).
Multiple recipients can be given separated by commas.
-
- Type
-
string
Defines to which addresses the email should be sent in BCC (Blind Carbon Copy).
Multiple recipients can be given separated by commas.
Site set
With the feature toggle cart. the emails at the end
of an order are sent by \Extcode\. It reads the
email addresses from the site settings extcode. of the site set
extcode/ of the site of the storage page of the order, see
Site sets. plugin. and the email
addresses in the settings of the cart plugin are not used then.
The emails on status changes always use these addresses, see Emails on status changes.
$GLOBALS['TYPO3_CONF_VARS']['SYS']['features']['cart.useNewOrderMailSender'] = true;
The keys are the same as in TypoScript, but the addresses are lists:
extcode:
cart:
mail:
buyer:
fromName: 'Your Brand name'
fromAddress: 'cart.buyer.sender@example.com'
ccAddress: ['cart.buyer.cc1@example.com', 'cart.buyer.cc2@example.com']
bccAddress: []
replyToAddress: ['cart.buyer.reply@example.com']
seller:
fromName: 'Cart TYPO3 System'
fromAddress: 'cart.seller.sender@example.com'
toAddress: ['cart.seller.to1@example.com', 'cart.seller.to2@example.com']
ccAddress: []
bccAddress: []
Without from no email is sent to the buyer or to the seller. The
seller needs to, otherwise an error is written to the order log.
The attachments are still configured with TypoScript, see
Email attachments.