Jeroen Verschoor
Member
On request were sending password forgotten emails, but these are frequently not sent because an email address is listed on the 'blacklisted emails' for some reason.
How can we force the sending of this specific email and, when this is succesful, remove the email from the email blacklist suppression list?
Email is sent through the TransactionalEmails endpoint:
How can we force the sending of this specific email and, when this is succesful, remove the email from the email blacklist suppression list?
Email is sent through the TransactionalEmails endpoint:
Code:
//Create and sent the email
$endpoint = new MailWizzApi_Endpoint_TransactionalEmails();
$response = $endpoint->create(array(
'to_name' => $oUser->user_firstname.' '.$oUser->user_lastname,
'to_email' => $oUser->email,
'from_name' => $fromName,
'from_email' => $fromEmail,
'subject' => $subject,
'body' => $html,
'plain_text' => $text,
'send_at' => gmdate('Y-m-d H:i:s', strtotime("now"))
));