Article View: news.software.readers
Article #108581Help! Posting html message
From: TheCorruptedAlied
Date: Sun, 01 Sep 2002 19:41
Date: Sun, 01 Sep 2002 19:41
31 lines
2131 bytes
2131 bytes
Hi Guys:
This is directed towards maker of xnews software Lou Tran or anyone else who
has intricate knowledge of nntp protocol. I am trying to post HTML messages
via php and so for i haven't had any luck. Posting text message is fine but
seems like the server ignores my message with the html content type and mime
header.
Code fragment is below.
$settings["html.mail.header"] = "From: www.meetwithamate.com <" .
$settings["system.from.email"] . ">\n".
"Newsgroups: ". trim($newsgroups[$i]) . "\n".
"Subject: ". $subject . " - (" . md5($newsgroups[$i] .
$subject . getTimeStampInMySqlFormat()) . ")\n".
"Mime-Version: 1.0\n".
"Content-Type: text/html; charset=us-ascii\n".
"Content-Transfer-Encoding: 7bit\n\n".
$message;
After this, $settings["html.mail.header"] is sent to the server via a
socket. Server does ack and replied that the article is posted but it never
shows up.
If some one could help me correct this, i would really appreciate it.
Thanks,
Manish
Technical Details
Message-ID:
<i3uc9.13158$NV6.279531@news4.srv.hcvlny.cv.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!newsswitch.lcs.mit.edu!snoopy.risq.qc.ca!ps01-chi1!newsfeeds-atl2!news.webusenet.com!pc01.webusenet.com!news4.srv.hcvlny.cv.net.POSTED!53ab2750!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <i3uc9.13158$NV6.279531@news4.srv.hcvlny.cv.net> Subject: Help! Posting html message Date: Sun, 1 Sep 2002 15:41:09 -0400 From: "TheCorruptedAlied" <hostbook@yahoo.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!newsswitch.lcs.mit.edu!snoopy.risq.qc.ca!ps01-chi1!newsfeeds-atl2!news.webusenet.com!pc01.webusenet.com!news4.srv.hcvlny.cv.net.POSTED!53ab2750!not-for-mail Newsgroups: news.software.readers Lines: 30 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 24.45.10.190 X-Trace: news4.srv.hcvlny.cv.net 1030909262 24.45.10.190 (Sun, 01 Sep 2002 15:41:02 EDT) NNTP-Posting-Date: Sun, 01 Sep 2002 15:41:02 EDT Organization: Optimum Online