class Swift_Message not found in SwiftMailer 4.0.0?
Posted: Mon Mar 09, 2009 10:47 am
I cannot believe I am the first one using 4.0.0...
Anyway, the line
produces a fatal PHP error "Call to undefined method Swift_Message::newinstance()".
With a text find operation on the files, this class turns out to be declared in lib/Swift/Message.php. But including this file does not remedy the problem.
I note that the example files include a file named "swift_required.php" instead of "Swift.php", but I cannot find that file.
What is wrong?
Anyway, the line
Code: Select all
$message = Swift_Message::newInstance();With a text find operation on the files, this class turns out to be declared in lib/Swift/Message.php. But including this file does not remedy the problem.
I note that the example files include a file named "swift_required.php" instead of "Swift.php", but I cannot find that file.
What is wrong?