Class 'Swift' not found : strange
Posted: Sun Mar 01, 2009 9:46 am
I'm getting this, while trying the new 3.3.3 version of swift mailer
Class 'Swift' not found in /home/user/public_html/class/gen.php on line 319
Line 317,318 and 319 reads:
Now this is strange, as class Swift IS present in Swift.php at the given path.
Any help from anywhere?
Class 'Swift' not found in /home/user/public_html/class/gen.php on line 319
Line 317,318 and 319 reads:
Code: Select all
require_once ROOT."Swift-3.3.3-php5/lib/Swift.php";
require_once ROOT."Swift-3.3.3-php5/lib/Swift/Connection/SMTP.php";
$swift =& new Swift(new Swift_Connection_SMTP("mysite.com",25));Any help from anywhere?
For php5 users, we also have a problem with allow_url_include which needs to be "On" for this to work (In my server it was set to "Off").