Page 1 of 1

blank page when using swiftmailer test script works fine

Posted: Tue May 22, 2007 10:56 am
by gareth805
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?

Posted: Tue May 22, 2007 12:03 pm
by Chris Corbyn
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);