SilverShop\Checkout\OrderEmailNotifier
Handles email notifications to customers and / or admins.
Synopsis
class OrderEmailNotifier
{
- // members
- protected Order $order;
- protected bool $debugMode = false;
- // methods
- public void __construct()
- public $this setDebugMode()
- protected Email buildEmail()
- public bool|string sendEmail()
- public bool sendConfirmation()
- public bool|string sendAdminNotification()
- public void sendReceipt()
- public void sendCancelNotification()
- public bool|string sendStatusChange()
- protected string debug()
Hierarchy
Uses
- SilverStripe\Core\Injector\Injectable
- SilverStripe\Core\Config\Configurable
Members
protected
- $debugMode — SilverShop\Checkout\bool
- $order — SilverShop\Model\Order
Methods
protected
- buildEmail()
- debug() — The new Email::debug method in SilverStripe dumps the entire message with all message parts, which makes it unusable to preview an Email.
public
- __construct() — Assign the order to a local variable
- sendAdminNotification() — Notify store owner about new order.
- sendCancelNotification() — Sends an email to the admin that an order has been cancelled
- sendConfirmation() — Send customer a confirmation that the order has been received
- sendEmail() — Send a mail of the order to the client (and another to the admin).
- sendReceipt() — Send customer an order receipt email.
- sendStatusChange() — Send an email to the customer containing the latest note of {@link OrderStatusLog} and the current status.
- setDebugMode()