I have an odd problem using Version 3.2.1 for PHP4. I created a simple test script and was able to send an email fine. So I wanted to start using it in our existing application, however the moment I put both of the following includes in at the top of the script it fails with no warnings or errors just a blank page.
require_once ("include_classes/Swift.php)";
require_once ("include_classes/Swift/Connection/SMTP.php)";
One point I should note is I am using PHP5 on my local machine although deployment will be on PHP4.
Any ideas?
blank page when using swiftmailer test script works fine
Moderators: Chris Corbyn, General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
You're using PHP5 on the local machine, but using PHP4 version of Swift? This should be fine *provided you have PHP 5.1+*. 5.0 gives fatal errors with PHP4 code. A blank screen is usually a sign of a fatal error:
Code: Select all
ini_set("display_errors", true);
error_reporting(E_ALL);