You are here: My problems with Net_NNTP « PHP Programming Language « IT news, forums, messages
My problems with Net_NNTP

Posted by sff11i on 10/10/05 09:38

I always get error messages regarding the "from" address field even
though it looks correct to me, e.g.
news.php.net says "posting failed - invalid from"
news.ntlworld.com says "Posting Failed ("From" Header not in Internet
Syntax.)"

Versions:
PHP 5.0.5
Net_NNTP 1.1.2

Full Code:
<?php

require_once 'Net/NNTP/Client.php';

$nntp = new Net_NNTP_Client();

$nntp->setDebug();

$nntp->connect('news.php.net');

$subject = "Testpost";
$newsgroup = "alt.binaries.test";
$body = "test";
$from = "test@example.com";

$response = $nntp->post($subject, $newsgroup, $from, $body);

var_dump($response);

?>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация