I am using the PHP library for Sendgrid (https://github.com/sendgrid/sendgrid-php). Following the instructions, I had to use this line of code:
$mail = new SendGrid\Mail();
I get the error:
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/d/public_html/ac/application/controllers/email.php on line 20
Parse error: syntax error, unexpected T_STRING in /home/d/public_html/ac/application/controllers/email.php on line 20
Is there something wrong with using '\'? Seems strange to me... How can I get this to work?
That \ is part of namespaces, a new feature in PHP 5.3.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With