0

I use SwiftMailer in my PHP script to send emails upon HTML form submission.
On the test server it all works fine.
On the production server (different host) it gives me this error message:

Parse error: syntax error, unexpected
T_CLASS in
/home/alkal5/public_html/html/swift-mailer/lib/classes/Swift.php
on line 18

The two machines use different version of PHP: one is PHP5 and the other is PHP4.4.9.
Could that cause the problem or it's something else?
How do I resolve it?
Thank you!

1
Contributor
1
Reply
2
Views
7 Years
Discussion Span
Last Post by levsha
0

Okay, I enabled PHP5 on the other server, and it solved the problem.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.