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 used doesn't need any data
$mail = new Mail( "welcome", ["email" => "[email protected]" ] );
// Send to Apostle.io
$result = $mail->deliver($failureMsg);
echo $result ? "all ok" : "Something failed: $failureMsg\n";
It prints "all ok".
There are 3 problems happening:
The message fails to be delivered even though it's valid.
The delivery returns true, but should be false.
The apostle.io web-console shows the wrong delivery failure message.
The apostle.io web-console shows the following reason for failing:
Failed to hydrate template, check your template and data variables match
However this isn't a true error message because my "welcome" template (which I edited from the demo) doesn't have any template variables.
If you thern add any data item, even if the template doesn't need any, the mail will send ok.
$mail->anythinghere = "any value";
So it seems apostle needs some data, even if not used, before it'll send.
The text was updated successfully, but these errors were encountered:
Here is a test case:
It prints "all ok".
There are 3 problems happening:
The apostle.io web-console shows the following reason for failing:
However this isn't a true error message because my "welcome" template (which I edited from the demo) doesn't have any template variables.
If you thern add any data item, even if the template doesn't need any, the mail will send ok.
So it seems apostle needs some data, even if not used, before it'll send.
The text was updated successfully, but these errors were encountered: