|
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]
|