Warning: Undefined array key "subject" in /home/solutionscp/public_html/email-service/SendGrid/sendSecuritasEmail.php on line 14
Warning: Undefined array key "toEmail" in /home/solutionscp/public_html/email-service/SendGrid/sendSecuritasEmail.php on line 22
Warning: Undefined array key "emailContent" in /home/solutionscp/public_html/email-service/SendGrid/sendSecuritasEmail.php on line 25
400
Array
(
[0] => HTTP/1.1 400 Bad Request
[1] => Server: nginx
[2] => Date: Sun, 27 Jul 2025 07:03:05 GMT
[3] => Content-Type: application/json
[4] => Content-Length: 691
[5] => Connection: keep-alive
[6] => Access-Control-Allow-Origin: https://sendgrid.api-docs.io
[7] => Access-Control-Allow-Methods: POST
[8] => Access-Control-Allow-Headers: Authorization, Content-Type, On-behalf-of, x-sg-elas-acl
[9] => Access-Control-Max-Age: 600
[10] => X-No-CORS-Reason: https://sendgrid.com/docs/Classroom/Basics/API/cors.html
[11] => Strict-Transport-Security: max-age=31536000; includeSubDomains
[12] => Content-Security-Policy: frame-ancestors 'none'
[13] => Cache-Control: no-cache
[14] => X-Content-Type-Options: no-sniff
[15] => Referrer-Policy: strict-origin-when-cross-origin
[16] =>
[17] =>
)
{"errors":[{"message":"The to email parameter may not be null","field":"personalizations.0.to.0","help":"http://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/errors.html#message.personalizations.to"},{"message":"The subject is required. You can get around this requirement if you use a template with a subject defined or if every personalization has a subject defined.","field":"subject","help":"http://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/errors.html#message.subject"},{"message":"The content value must be a string at least one character in length.","field":"content.0.value","help":"http://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/errors.html#message.content.value"}]}