This repository has been archived by the owner on Dec 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 116
size limits in the data array? #46
Comments
Open mouth 😮 insert foot 👞 In my method where I am getting the error, I have the following line, about 10 lines above, before I send the email $validateAddress = Mailgun::validate(Input::get('email'));
if(!$validateAddress->is_valid) {
// return them back to the form
} Using the Trying some work arounds, but none have been successful yet. |
That is odd, I'll see if I can reproduce it. |
A simple test case that I just tried: (replacing $validateAddress = Mailgun::validate('me@example.com');
try {
Mailgun::send('emails.test', [], function ($message) {
$message->to('me@example.com')
->subject('This is a test');
});
} catch(InvalidCredentials $e) {
var_dump($validateAddress->is_valid);
return 'api-key problem!';
}
dd('done here'); and the email never sends |
@codivist Thanks, I'll be at my computer in a couple of hours. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When sending emails, one of my email methods has a couple of object passed to the view along with a few variables. When I leave the data array empty or just pass the variables it sends just fine, when passing in the objects I get an InvalidCredentials error:
Yes I saw #33, but this is different, I have no problems with the validating emails, and emails are sending most of the time.
This one works everytime: (only 2 or 3 variables are passed through $data)
This one does NOT work: (two object and 3 variables are being passed to $data)
when changing the $data to an empty array in the send method it sends.
The text was updated successfully, but these errors were encountered: