Warning: Undefined array key "subject" in /home/solutionscp/public_html/email-service/SendGrid/sendNasEmail.php on line 14
Warning: Undefined array key "toEmail" in /home/solutionscp/public_html/email-service/SendGrid/sendNasEmail.php on line 21
Deprecated: explode(): Passing null to parameter #2 ($string) of type string is deprecated in /home/solutionscp/public_html/email-service/SendGrid/sendNasEmail.php on line 21
Fatal error: Uncaught SendGrid\Mail\TypeException: "$emailAddress" must be a valid email address. Got: in /home/solutionscp/public_html/email-service/SendGrid/lib/helper/Assert.php:61
Stack trace:
#0 /home/solutionscp/public_html/email-service/SendGrid/lib/mail/EmailAddress.php(69): SendGrid\Helper\Assert::email('', 'emailAddress')
#1 /home/solutionscp/public_html/email-service/SendGrid/lib/mail/EmailAddress.php(47): SendGrid\Mail\EmailAddress->setEmailAddress('')
#2 /home/solutionscp/public_html/email-service/SendGrid/lib/mail/Mail.php(190): SendGrid\Mail\EmailAddress->__construct('', NULL, NULL)
#3 /home/solutionscp/public_html/email-service/SendGrid/lib/mail/Mail.php(383): SendGrid\Mail\Mail->addRecipientEmail('To', '', NULL, NULL, NULL, NULL)
#4 /home/solutionscp/public_html/email-service/SendGrid/sendNasEmail.php(25): SendGrid\Mail\Mail->addTo('')
#5 {main}
thrown in /home/solutionscp/public_html/email-service/SendGrid/lib/helper/Assert.php on line 61