Hi all,
After installing PP 0.8.6 it became apparent that a separate install was necessary for SwiftMailer. The docs say that PP works with SwiftMailer but mentioned nothing about making sure it is installed. PP not working with SwiftMailer 4.1.3 and I'm not sure why.
What I've found is that whether you use the PHP Mailer or SMTP mailer settings, it still tries to load the swift mailer classes. Fine, but PP looks in ./environment/library/swift/ for swift.php which does not exist.
PP expects (1) any additional/user libraries to be placed in ./environment/library/ (2) with the library name as the folder name eg "database" or "swift" (3) and the library include file should be the folder name + .php eg "database.php" or "swift.php" respectively, (4) so that it can find the library and load it.
So I uploaded the swift files to ./environment/library/swift/ so that it is available for PP. Still no luck. The file swift.php is actually located at ./environment/library/swift/classes/swift.php in terms of my setup and contains the swift class.
Then I figured after reading http://swiftmailer.org/docs/including-the-files.html that Swift Mailer uses an autoloader. So instead of including swift.php, what PP should be doing is including swift_required.php, or swift_init.php in the very least.
Including swift_init.php is a fail, because PP breaks with a 'Could not find class file for "SWIFT_DEPENDENCYCONTAINER"' error during the autoload process. Including swift_required.php fails horribly - PHP stops the site with a fatal error "Class 'MailTransportConfigHandler' not found".
So I'm somewhat stuck. Basically, I'd like to get SwiftMailer working with PP. Any assistance or clarification would be great!