Sunnysideup\Ecommerce\Model\Order:: sendAdminNotification
Sends a message to the shop admin ONLY and not to the customer This can be used by ordersteps and orderlogs to notify the admin of any potential problems.
Signature
public function sendAdminNotification([string
$emailClassName = OrderErrorEmail::class,
[string
$subject = '',
[string
$message = '',
[boolean
$resend = false,
[boolean
$adminOnlyOrToEmail = true]]]]] )
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)