Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#337 2007-08-15 17:33:10
Re: [archived] Postmaster -- A simple email-on-post / newsletter manager
I’m pulling my hair out with this one. It seems like it should be so simple, but yet, I’m stumped.
When I send a mime message via PM to a gmail account nothing shows up in the gmail message. The message is delivered, and there’s a correct subject line, but the body of the e-mail is completely blank. If you click “show original” within gmail, sure enough it shows the code and everything’s there as it should be, but it just won’t display.
I’ve tried the “line 620 header fix” but that didn’t seem to make any difference. I can get plain text e-mails to come through just fine, but as soon as I try to send a message with bab_pm_mime tags, I get nothing. The other weird thing is that I can check my gmail account with my mail client via pop and the messages show up just as they should. I’ve checked back through my some 3000+ gmail archives, and I can’t find any other html message from anyone that has shown up blank like this.
Just in case it helps, here’s the code when I view the “show original” in gmail:
Delivered-To: rXXXXXXXer@gmail.com
Received: by 10.65.252.12 with SMTP id e12cs339425qbs;
Wed, 15 Aug 2007 10:16:04 -0700 (PDT)
Received: by 10.90.102.20 with SMTP id z20mr1022866agb.1187198163995;
Wed, 15 Aug 2007 10:16:03 -0700 (PDT)
Return-Path: <nobody@ZZZZZZZZZle.net>
Received: from ZZZZZZZZZle.net (tncrealtycatalog.com [76.12.28.36])
by mx.google.com with ESMTP id 8si14635335agd.2007.08.15.10.16.03;
Wed, 15 Aug 2007 10:16:03 -0700 (PDT)
Received-SPF: neutral (google.com: 76.12.28.36 is neither permitted nor denied by domain of nobody@ZZZZZZZZZle.net) client-ip=76.12.28.36;
Received: from nobody by ZZZZZZZZZle.net with local (Exim 4.66)
(envelope-from <nobody@ZZZZZZZZZle.net>)
id 1ILMTR-0006fA-Cf
for rXXXXXXXer@gmail.com; Wed, 15 Aug 2007 10:16:01 -0700
To: rXXXXXXXer@gmail.com
Subject: Test message from Postmaster
From: rXXXXXXXer@gmail.com
Reply-To: rXXXXXXXer@gmail.com
X-Mailer: PHP/4.4.7
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="==Multipart_Boundary_x033bc9131fb1bc603b699cef1c65431ax"
Message-Id: <E1ILMTR-0006fA-Cf@ZZZZZZZZZle.net>
Date: Wed, 15 Aug 2007 10:16:01 -0700
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - ZZZZZZZZZle.net
X-AntiAbuse: Original Domain - gmail.com
X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [47 12]
X-AntiAbuse: Sender Address Domain - ZZZZZZZZZle.net
Here is a text warning.
--==Multipart_Boundary_x033bc9131fb1bc603b699cef1c65431ax
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Here is the text version.
--==Multipart_Boundary_x033bc9131fb1bc603b699cef1c65431ax
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
Here is the HTML version.
--==Multipart_Boundary_x033bc9131fb1bc603b699cef1c65431ax
Offline
#338 2007-08-15 20:05:50
Re: [archived] Postmaster -- A simple email-on-post / newsletter manager
visualpeople,
I can’t remember exactly, but there was something with the “end” mime tag — it’s either, if you’re using it, try removing it, and if you’re not using it, try using it. It’s something to do with the mimes — the reason you are seeing code and not an email is the mimes are being fed incorrectly to gmail — and i think trying variations will get you where you want, but I can’t say for certain.
Can anyone else give any help here?
- Ben
Offline
#339 2007-08-15 21:05:15
Re: [archived] Postmaster -- A simple email-on-post / newsletter manager
andreas wrote:
Neil, I have to disappoint you – I don’t really know PHP, I edited that deGlyph function simply based on the pattern that was used and what I observed in the emails. I had a look through the library code looking for hidden tabs in the functions that I understood to be respobsible to put together the emails (
function bab_pm_mime
) but I couldn’t find any. Sorry.
Ah well, thanks anyway andreas…
Cheers
Offline
#340 2007-08-16 07:18:10
Re: [archived] Postmaster -- A simple email-on-post / newsletter manager
Ben —
Thanks a ton! That was the magic piece to the puzzle — at least the one that needed to be taken away.
I removed the “end” mime tag and gmail now recognizes the message just as it should. No more blank messages!
Anyone see any reason this would cause problems with other mail clients? I haven’t seen any associated problems so far, everything seems to be just fine.
-Ryan
Offline
#341 2007-08-16 20:00:20
Re: [archived] Postmaster -- A simple email-on-post / newsletter manager
visualpeople,
I think there are some associated issues (with other mail readers). I can’t be certain though, so as long as you’re not seeing anything … Let us know back here if you do, if you can.
- Ben
Last edited by benbruce (2007-08-16 20:00:38)
Offline
#342 2007-08-19 21:31:12
Re: [archived] Postmaster -- A simple email-on-post / newsletter manager
What happened to your website, Ben?
bludrop studios .::. Creative Expression
Offline
#343 2007-08-20 03:23:46
Re: [archived] Postmaster -- A simple email-on-post / newsletter manager
blumie607,
I’m not sure what you mean … I just went and checked it out and everything seems OK to me. Was it down when you went?
- Ben
Offline
#344 2007-08-20 03:25:47
Re: [archived] Postmaster -- A simple email-on-post / newsletter manager
Yeah, weird.
When I went earlier today, I got one of those “landing page” where it shows all kinds of keywords and some random pictures…
It seems to be working now
bludrop studios .::. Creative Expression
Offline
#345 2007-08-30 13:56:15
- kevinmcdougall
- Member
- Registered: 2007-02-08
- Posts: 55
Re: [archived] Postmaster -- A simple email-on-post / newsletter manager
Ben,
Hope you (or anyone else in here) can help. Would it be possible to export all subscribers as a CSV from within the PM admin page using a download link? If so, any ideas how I would go about it?
Thanks
Offline
#346 2007-08-30 16:30:21
Re: [archived] Postmaster -- A simple email-on-post / newsletter manager
kevinmcdougall,
There’s no way to do this right now. But of course, there IS a way. In theory it’s very simple: just run a mysql query and retrieve your records from the database, format the data correctly, create a text file and print. Very simple. If you know any php you could easily do this yourself. If not, I can poke around in there and see if I can get it done for you (this was always on the list of things that PM SHOULD do). Maybe someone else has time, too.
- Ben
Offline
#347 2007-08-30 20:43:21
Re: [archived] Postmaster -- A simple email-on-post / newsletter manager
OK, here’s the export function (just a simple hack). One of these days all of these hacks will be rolled up into the next version.
Place the following code at the very bottom of your “Postmaster_library” plugin:
// ---- POSTMASTER EXPORTER ----------------------------
function bab_pm_exporter() {
echo '<P class=bab_pm_subhed>EXPORT</P>';
echo '<fieldset id="bab_pm_importfromnm"><legend><span class="bab_pm_underhed">Click the link below to open text file</span></legend>';
$bab_pm_SubscribersTable = PFX . 'bab_pm_subscribers';
// get subscribers
$subscribers = getRows("select * from $bab_pm_SubscribersTable");
$date = date("H:i:s");
$myFile = "../files/pm_export_$date.txt";
$fh = fopen($myFile, 'a') or die("can't open file");
foreach ($subscribers as $subscriber) {
extract($subscriber);
$stringData = $subscriberID . ',' . $subscriberName . ',' . $subscriberEmail . ',' . $subscriberLists . ',' . $subscriberCustom1 . ',' . $subscriberCustom2 . ',' . $subscriberCustom3 . ',' . $subscriberCustom4 . ',' . $subscriberCustom5 . ',' . $subscriberCustom6 . ',' . $subscriberCustom7 . ',' . $subscriberCustom8 . ',' . $subscriberCustom9 . ',' . $subscriberCustom10 . ',' . $subscriberCatchall . ',' . $flag . ',' . $unsubscribeID . "\n";
fwrite($fh, $stringData);
}
fclose($fh);
echo $final = <<<final
<P><a href="../files/pm_export_$date.txt">Open file</a></p>
final;
echo '</fieldset>';
}
// ---- POSTMASTER EXPORT ----------------------------
function bab_pm_export() {
echo '<P class=bab_pm_subhed>EXPORT</P>';
echo '<fieldset id="bab_pm_importfromnm"><legend><span class="bab_pm_underhed">Click the link below to create text file</span></legend>';
echo $final = <<<final
<P><a href="index.php?event=postmaster&step=exporter">Create file</a></p>
final;
echo '</fieldset>';
}
Then surf to Admin > Extensions > Postmaster, and add this to the end of the url: &step=export
That will take you to a page with a link to create the text file. Once you click the link, you’ll get another link to open the text file. On my machine, it opens in the web browser, but you can copy and paste from there to a Notepad file. The file is also in the “files” directory of your server.
Offline
#348 2007-08-31 03:54:41
Re: [archived] Postmaster -- A simple email-on-post / newsletter manager
ben rocks (and possibly [although I can’t confirm this]) rolls…
Offline