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

What could it be?
Thank you!

The two machines used different PHP versions.
I enabled PHP5 on one of them, and it solved the problem.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.