Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Catchable fatal error creating a new instance of Swift_Message #197
I want to use Swiftmail library and I've follow the doc trought out:
But I got:
Catchable fatal error: Argument 1 passed to Swift_Mime_SimpleMessage::__construct() must be an instance of Swift_Mime_HeaderSet, none given in /opt/lampp/lib/php/Swift/Mime/SimpleMessage.php on line 30
when I did:
I got this error using swiftmailer from symfony2 project with this config:
I've been snooping the new instance method and the constructor of Swift_Message and the error is raised because Swift_DependencyContainer::getInstance()
@yoander The Swift doc talks about it in the chapter before the one you linked: http://swiftmailer.org/docs/including-the-files.html
And the Symfony doc does not mention it again but the standard distribution configures it properly.