mails not being sent, but are?

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
hypermegachi
Forum Newbie
Posts: 2
Joined: Thu Sep 13, 2007 12:43 pm

mails not being sent, but are?

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

Post 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.
hypermegachi
Forum Newbie
Posts: 2
Joined: Thu Sep 13, 2007 12:43 pm

Post 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.
Post Reply