-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix MailCare Driver #114
Fix MailCare Driver #114
Conversation
Implemented in fork as well: https://packagist.org/packages/joelharkes/laravel-mailbox You could add additional content-type check to avoid the JSON messages (mistakenly setup) being seen as emails. |
public function validator() | ||
{ | ||
return Validator::make($this->all(), [ | ||
'email' => 'required', | ||
]); | ||
return Validator::make($this->all(), []); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public function validator() | |
{ | |
return Validator::make($this->all(), [ | |
'email' => 'required', | |
]); | |
return Validator::make($this->all(), []); | |
} | |
public function rules() | |
{ | |
return [ | |
"content_type" => "required|in:message/rfc2822", | |
]; | |
} | |
public function prepareForValidation() | |
{ | |
$this->merge([ | |
"content_type" => $this->headers->get("Content-type"), | |
]); | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me :)
Thanks! |
Hello,
The current implementation of the MailCare driver doesn't work.
This PR fix all the issues and has been fully tested. I also updated the doc.
Best regards,