markguinn / silverstripe-email-helpers

Silverstripe extension containing SMTP mailer class and some other classes for HTML emails
31 stars 22 forks source link

php syntax error #12

Closed hp7 closed 8 years ago

hp7 commented 8 years ago

Running on PHP 5.3.29 Parse error: syntax error, unexpected '[' in /*/****/****_/**.com/**_***/vendor/pelago/emogrifier/Classes/Emogrifier.php on line 91

markguinn commented 8 years ago

Emogrifier likely only supports php 5.4 now. You could try searching their commit history, finding a version that still supported 5.3 and requiring that specific version in your composer.json. I'd also really encourage you to upgrade to a modern version of php though. This will be a more and more common experience for you.

hp7 commented 8 years ago

Thx that does seem to be the issue. I switched to 5.4.42 and no error. Although I still am not receiving the email, but that may be a spam problem.

markguinn commented 8 years ago

Glad to hear it!