Sunnysideup\Ecommerce\Model\Order::prepareAndSendEmail
Send a mail of the order to the client (and another to the admin).
Signature
protected function prepareAndSendEmail([string
$emailClassName = OrderInvoiceEmail::class,
[string
$subject = '',
[string
$message = '',
[boolean
$resend = false,
[boolean
$adminOnlyOrToEmail = false]]]]] )
Parameters
$emailClassName
—
string
- - (optional) template to be used ...
$subject
—
string
- - (optional) subject for the email
$message
—
string
- - (optional) message to be added with the email
$resend
—
boolean
- - (optional) can it be sent twice?
$adminOnlyOrToEmail
—
boolean
- - (optional) sends the email to the ADMIN ONLY, if you provide an email, it will go to the email...
Returns
- bool
- TRUE for success, FALSE for failure (not tested)