blank page when using swiftmailer test script works fine

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
gareth805
Forum Newbie
Posts: 1
Joined: Tue May 22, 2007 10:52 am

blank page when using swiftmailer test script works fine

Post 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?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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);
Post Reply