Page 2 of 2
Posted: Wed Apr 04, 2007 2:35 am
by Oren
astions wrote:Oren, in this situation using swift would be like using a freight train to pull a pack of cigarettes down an icy hill.
I'm not sure, I must admit that I really don't know... I guess we will have to hear what
d11wtq has to say about it.
Posted: Wed Apr 04, 2007 5:53 am
by Chris Corbyn
Oren wrote:astions wrote:Oren, in this situation using swift would be like using a freight train to pull a pack of cigarettes down an icy hill.
I'm not sure, I must admit that I really don't know... I guess we will have to hear what
d11wtq has to say about it.
But I'm biased
Nah, I can see how someone would like to avoid adding Swift with its umpteen files if all they want to do is send a note or something that's not crucial. However, if I had a client on my back it would have been a lot quicker of a fix, and it does just sit by itself

Posted: Wed Apr 04, 2007 5:53 pm
by Benjamin
I pulled the message from the mail query. They are all bouncing because the return path is invalid (Return-Path: <anonymous@.>)
Does PHP need to be configured to set the return path or what?
--------------
MESSAGE NUMBER 47940827
--------------
Received: (qmail 23908 invoked for bounce); 4 Apr 2007 22:49:13 -0000
Date: 4 Apr 2007 22:49:13 -0000
From:
MAILER-DAEMON@IPDMEG0120MIA.usa.prod.interland.net
To:
postmaster@IPDMEG0120MIA.usa.prod.interland.net
Subject: failure notice
Hi. This is the qmail-send program at IPDMEG0120MIA.usa.prod.interland.net.
I tried to deliver a bounce message to this address, but the bounce bounced!
<anonymous@.>:
Sorry, I couldn't find any host named .. (#5.1.2)
--- Below this line is the original bounce.
Return-Path: <>
Received: (qmail 23906 invoked for bounce); 4 Apr 2007 22:49:13 -0000
Date: 4 Apr 2007 22:49:13 -0000
From:
MAILER-DAEMON@IPDMEG0120MIA.usa.prod.interland.net
To: anonymous@.
Subject: failure notice
Hi. This is the qmail-send program at IPDMEG0120MIA.usa.prod.interland.net.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.
<
HIDDEN@astions.com>:
Connected to 69.73.185.52 but sender was rejected.
Remote host said: 501 <anonymous@.>: domain missing or malformed
--- Below this line is a copy of the message.
Return-Path: <anonymous@.>
Received: (qmail 23904 invoked by uid 48); 4 Apr 2007 22:49:11 -0000
Date: 4 Apr 2007 22:49:11 -0000
Message-ID: <
20070404224911.23903.qmail@IPDMEG0120MIA.usa.prod.interland.net>
To:
HIDDEN@astions.com
Subject: Mail Test
From: "Testy, Tester" <
HIDDEN@yahoo.com>
Reply-To: "Testy, Tester" <
HIDDEN@yahoo.com>
This is a test message. This is a test message.
Posted: Wed Apr 04, 2007 5:54 pm
by Chris Corbyn
See the examples in the manual which show how to use the $extra_parameters.
Posted: Wed Apr 04, 2007 6:05 pm
by Benjamin
GRRR It would be nice if they would clarify crap like that better.
This is just stupid, I have 4 header lines with the from address in it now.
Code: Select all
$headers .= "Return-Path: $f\r\n";
$headers .= "Return-Receipt-To: $f\r\n";
if (preg_match("#<.*?>#s", $b))
{
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
}
$headers .= "From: $f\r\n";
$headers .= "Reply-To: $f\r\n";
Now I have to update the code in a bunch of installations.
Posted: Thu Apr 05, 2007 2:50 pm
by Benjamin
It would appear that even when you set the Return path, some servers overwrite it. The server I happen to be dealing with, is overwriting it with garbage

Posted: Thu Apr 05, 2007 4:02 pm
by Chris Corbyn
astions wrote:It would appear that even when you set the Return path, some servers overwrite it. The server I happen to be dealing with, is overwriting it with garbage

Yep. I wonder if Swift came in a single file like Java does "jar" files whether people would be less intimidated by it
/me wishes PHP had a JAR file type thing
Posted: Thu Apr 05, 2007 4:47 pm
by Benjamin
It's not intimidating. (to me at least) I have used it in 4 or 5 scripts that I have built. Finding the documentation on setting a specific thing can take a bit, but it's there.
In this case, a swift light would have been ok. If there was a version that could be integrated into a standalone script, or maybe a 1 class file it would have been fine.
I just didn't want to include a whole folder full of files for a tiny little script. That is how bloatware is born IMO.