Page 1 of 1

mails not being sent, but are?

Posted: Thu Sep 13, 2007 12:48 pm
by hypermegachi
ok, i'll try to keep this brief with bullets, it's very weird.

i'm testing with both apache 2.2.4 and lighttpd 1.4.18

- swift 3.1.1 php5 does not work with either
- swift 3.3.1 php5 works with lighttpd, does not work with apache.
- i'm using flyspray, you can see the source code in the class.notify.php that they use in their release 9.9.3
- i've tried both postfix and exim, and both logs say that the email was sent properly

even though the logs say the email was sent, i only receive the notification email when it is down through lighttpd, and not through apache. oddly enough, if i use the following test script i wrote:

Code: Select all

<?php
require_once "lib/Swift.php";
require_once "lib/Swift/Connection/SMTP.php";
$swift =& new Swift(new Swift_Connection_SMTP("localhost"));
$message =& new Swift_Message("My subject", "My body");
if ($swift->send($message, "me@me.com", "me@me.com")) echo "Sent";
   else echo "Failed";
?>
both apache and lighttpd work.

any ideas of what might be causing this? or is there any more info you'd like me to provide?

Posted: Thu Sep 13, 2007 1:20 pm
by Chris Corbyn
So you're saying it's inconsistent with FlySpray bug tracker, but it works when you do it yourself? I'd probably suggest emailing Christian or whoever is currently running flyspray because I can't see ay reason why Swift would behave differently depending upon the HTTP server ;) There's not really anything magical going on in Swift... just basic PHP code, but lots of it.

Posted: Thu Sep 13, 2007 3:42 pm
by hypermegachi
lol, they said it's most likely an upstream bug and to contact you :P

yeah, it doesn't make sense at all....hmmm, i guess i should try a fresh install of apache and see if that fixes the problem.