Sunnysideup\Ecommerce\Model\Order::sendEmail
Send the invoice of the order by email.
Signature
public function sendEmail([string
$emailClassName = OrderInvoiceEmail::class,
[string
$subject = '',
[string
$message = '',
[boolean
$resend = false,
[boolean
$adminOnlyOrToEmail = false]]]]] )
Parameters
$emailClassName
—
string
- (optional) class used to send email
$subject
—
string
- (optional) subject for the email
$message
—
string
- (optional) the main message in the email
$resend
—
boolean
- (optional) send the email even if it has been sent before
$adminOnlyOrToEmail
—
boolean
- (optional) sends the email to the ADMIN ONLY, if you provide an email, it will go to the email...
Returns
- bool
- TRUE on success, FALSE on failure