sendgrid / sendgrid-ruby

The Official Twilio SendGrid Led, Community Driven Ruby API Library
https://sendgrid.com
MIT License
624 stars 323 forks source link

Type Exception Handling for the Mail Helper #356

Closed thinkingserious closed 3 years ago

thinkingserious commented 6 years ago

Issue Summary

The appropriate types necessary for a successful mail/send API call is documented here. We want to throw a type exception when the wrong type is provided.

Acceptance Criteria

jrectenwald commented 6 years ago

@thinkingserious I started a PR for this and added a validation for the to and from email addresses. I'd appreciate some feedback on my approach before I continue adding validations for the rest of the parameters. Thanks!

thinkingserious commented 3 years ago

Since there has been no activity on this issue since March 1, 2020, we are closing this issue. Please feel free to reopen or create a new issue if you still require assistance. Thank you!