Not sure what the problem is
Posted: Tue Jul 15, 2008 1:28 pm
Here is the output I receive from the screen when I go to my site:
Here is my php script:
NOTE: Both the attributes of /swiftmailer/lib/Swift.php and /swiftmailer/lib/Swift/Connection/SMTP.php have been set to 755.
Code: Select all
Warning: main(/swiftmailer/lib/Swift.php): failed to open stream: No such file or directory in /home/content/D/e/n/DenKain/html/surveyBoSSwift.php on line 7
Fatal error: main(): Failed opening required '/swiftmailer/lib/Swift.php' (include_path='.:/usr/local/lib/php') in /home/content/D/e/n/DenKain/html/surveyBoSSwift.php on line 7
NOTE: Both the attributes of /swiftmailer/lib/Swift.php and /swiftmailer/lib/Swift/Connection/SMTP.php have been set to 755.
Code: Select all
<html>
<body>
<?php
//Load in the files we'll need
require_once "/swiftmailer/lib/Swift.php";
require_once "/swiftmailer/lib/Swift/Connection/SMTP.php";
//Start Swift
$swift =& new Swift(new Swift_Connection_SMTP("smtp.mythicsoftware.com"));
//Create the message
$message =& new Swift_Message("My subject", "My body");
//Now check if Swift actually sends it
if ($swift->send($message, "admin@mythicsoftware.com", "test@mythicsoftware.com")) echo "Sent";
else echo "Failed";
?>
</body>
</html>