You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Set a valid domain key
Apostle::setup("valid-key-entered-here");
// Create a mail instance. Ensure the mail template needs some data
$mail = new Mail( "welcome", ["email" => "[email protected]" ] );
// Give some data but NOT what the template needs
$mail->username = "Snikch";
// Send to Apostle.io
$result = $mail->deliver($failureMsg);
echo $result ? "all ok" : "Something failed: $failureMsg\n";
It prints "all ok".
The apostle.io web-console shows the failure reason nicely:
Failed to hydrate template, check your template and data variables match
Would be better if we could get a error message from the API call saying the same message as the web-console gives us.
The text was updated successfully, but these errors were encountered:
Here is a test case:
It prints "all ok".
The apostle.io web-console shows the failure reason nicely:
Would be better if we could get a error message from the API call saying the same message as the web-console gives us.
The text was updated successfully, but these errors were encountered: