From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JhgMu-00045K-V4 for garchives@archives.gentoo.org; Fri, 04 Apr 2008 07:29:49 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C08AAE094C; Fri, 4 Apr 2008 07:29:47 +0000 (UTC) Received: from rekin23.go2.pl (rekin23.go2.pl [193.17.41.16]) by pigeon.gentoo.org (Postfix) with ESMTP id 7754CE094C for ; Fri, 4 Apr 2008 07:29:47 +0000 (UTC) Received: from o2.pl (unknown [10.0.0.65]) by rekin23.go2.pl (Postfix) with SMTP id 8BBD41288E3 for ; Fri, 4 Apr 2008 09:29:46 +0200 (CEST) Subject: [gentoo-user] =?UTF-8?Q?problem_with_pear-mail_(probably)?= From: =?UTF-8?Q?Marcin_Ni=C5=9Bkiewicz?= To: gentoo-user@lists.gentoo.org Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Message-ID: <6d2ae6d5.8fbb4ad.47f5d8ec.16d07@o2.pl> Date: Fri, 04 Apr 2008 09:29:48 +0200 X-Originator: 195.78.66.5 Content-Type: multipart/alternative; boundary="==o2.pl-WebMail-41f53694.383ebd6b.16d13==" X-Archives-Salt: fac4f8c8-3e0d-4fb3-84cd-52dd5e2209a5 X-Archives-Hash: cf0b425f70d5dadd05883caa00b4553d --==o2.pl-WebMail-41f53694.383ebd6b.16d13== Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable HelloI=20have=20apache=20on=20gentoo=20installed.=20Everything=20seems=20= OK=20despite=20that=20I=20can't=20send=20mail=20from=20my=20site.=20There= 's=20a=20notice:authentication=20failure=20[SMTP:=20Invalid=20response=20= code=20received=20fromserver=20(code:=20535,=20response:=205.7.0=20Error:= =20authentication=20failed:another=20step=20is=20needed=20in=20authentica= tion)]When=20i'm=20telneting=20my=20email=20server=20everything=20seems=20= OKi=20installed=20lots=20of=20(even=20unnecessary)=20pear=20libraries:dev= -php/PEAR-Auth-1.5.4 dev-php/PEAR-Auth=5FSASL-1.0.2 dev-php/PEAR-Crypt=5FCHAP-1.0.1 dev-php/PEAR-DB-1.7.12 dev-php/PEAR-File=5FPasswd-1.1.6 dev-php/PEAR-File=5FSMBPasswd-1.0.2 dev-php/PEAR-HTTP=5FRequest-1.4.1 dev-php/PEAR-Log-1.9.11 dev-php/PEAR-MDB-1.3.0-r1 dev-php/PEAR-MDB2-2.5.0=5Falpha1 dev-php/PEAR-MDB2=5FDriver=5Fmysql-1.5.0=5Falpha1 dev-php/PEAR-MDB2=5FDriver=5Fmysqli-1.5.0=5Falpha1 dev-php/PEAR-MIME=5FType-1.0.0 dev-php/PEAR-Mail-1.1.14 dev-php/PEAR-Mail=5FMime-1.3.1-r2 dev-php/PEAR-Net=5FDIME-0.3-r1 dev-php/PEAR-Net=5FDNS-1.0.0 dev-php/PEAR-Net=5FIMAP-1.1.0=5Fbeta1 dev-php/PEAR-Net=5FPOP3-1.3.6-r1 dev-php/PEAR-Net=5FSMTP-1.2.10 dev-php/PEAR-Net=5FSocket-1.0.8 dev-php/PEAR-Net=5FURL-1.0.15 dev-php/PEAR-PEAR-1.6.2-r1 dev-php/PEAR-PEAR=5FInfo-1.7.0 dev-php/PEAR-SOAP-0.11.0 dev-php/PEAR-System=5FCommand-1.0.6 dev-php/PEAR-XML=5FParser-1.2.8 dev-php/PEAR-XML=5FUtil-1.1.4but=20still=20it=20doesn't=20work...To=20sen= d=20mail=20i'm=20using=20such=20script=20(it's=20working):<?PHP function=20send=5Fmail($mail=5Ftext,$sender,$server,$login,$password,$rec= ipient,$subject){ require=5Fonce=20'Mail.php'; $params['host']=20=3D=20$server; $params['port']=20=3D=2025; $params['auth']=20=3D=20true; $params['username']=20=3D=20$login; $params['password']=20=3D=20$password; $headers['Subject']=20=3D=20$subject; #$headers['Message-Id']=20=3D=20$ticid; $headers['From']=20=3D=20$login; $headers['X-Abuse-To']=20=3D=20'abuse@mail.com'; $headers['Content-type']=20=3D=20'text/plain;=20charset=3DISO-8859-2'; $headers['To']=20=3D=20$recipient; $body=20=3D=20$mail=5Ftext; $recipients=20=3D=20$recipient; $mail=20=3D=20Mail::factory('smtp',=20$params); if=20(PEAR::isError($mail))=20{ =20print=20$mail->getMessage(); =20}=20else=20{ =20$error=20=3D=20$mail->send($recipients,=20$headers,=20$body); =20if=20(PEAR::isError($error))=20{ =20print=20$error->getMessage(); =20}=20else=20{ =20print=20'SUCCESS'; }}}; ?>I=20don't=20have=20any=20ideas=20what=20to=20do=20...I=20would=20app= reciate=20any=20helpbest=20regardsnichu --==o2.pl-WebMail-41f53694.383ebd6b.16d13== Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hello

I=20have=20apache=20on=20gentoo=20installed.=20Everything=20seems=20OK= =20despite=20that=20I=20can't=20send=20mail=20from=20my=20site.=20There's= =20a=20notice:

authentication=20failure=20[SMTP:=20Invalid=20response=20code=20receiv= ed=20from server=20(code:=20535,=20response:=205.7.0=20Error:=20authentication=20fa= iled: another=20step=20is=20needed=20in=20authentication)]

When=20i'm=20telneting=20my=20email=20server=20everything=20seems=20OK=

i=20installed=20lots=20of=20(even=20unnecessary)=20pear=20libraries:

dev-php/PEAR-Auth-1.5.4dev-php/PEAR-Auth=5FSASL-1.0.2d= ev-php/PEAR-Crypt=5FCHAP-1.0.1dev-php/PEAR-DB-1.7.12dev-p= hp/PEAR-File=5FPasswd-1.1.6dev-php/PEAR-File=5FSMBPasswd-1.0.2dev-php/PEAR-HTTP=5FRequest-1.4.1dev-php/PEAR-Log-1.9.11dev-php/PEAR-MDB-1.3.0-r1dev-php/PEAR-MDB2-2.5.0=5Falpha1dev-php/PEAR-MDB2=5FDriver=5Fmysql-1.5.0=5Falpha1dev-php/PEAR-M= DB2=5FDriver=5Fmysqli-1.5.0=5Falpha1dev-php/PEAR-MIME=5FType-1.0.= 0dev-php/PEAR-Mail-1.1.14dev-php/PEAR-Mail=5FMime-1.3.1-r= 2dev-php/PEAR-Net=5FDIME-0.3-r1dev-php/PEAR-Net=5FDNS-1.0= .0dev-php/PEAR-Net=5FIMAP-1.1.0=5Fbeta1dev-php/PEAR-Net=5F= POP3-1.3.6-r1dev-php/PEAR-Net=5FSMTP-1.2.10dev-php/PEAR-N= et=5FSocket-1.0.8dev-php/PEAR-Net=5FURL-1.0.15dev-php/PEA= R-PEAR-1.6.2-r1dev-php/PEAR-PEAR=5FInfo-1.7.0dev-php/PEAR= -SOAP-0.11.0dev-php/PEAR-System=5FCommand-1.0.6dev-php/PE= AR-XML=5FParser-1.2.8dev-php/PEAR-XML=5FUtil-1.1.4

but=20still=20it=20doesn't=20work...

To=20send=20mail=20i'm=20using=20such=20script=20(it's=20working):

=

<?PHPfunction=20send=5Fmail($mail=5Ftext,$sender,$server,$l= ogin,$password,$recipient,$subject){require=5Fonce=20'Mai= l.php';$params['host']=20=3D=20$server;$params['p= ort']=20=3D=2025;$params['auth']=20=3D=20true;$params['us= ername']=20=3D=20$login;$params['password']=20=3D=20$password;$headers['Subject']=20=3D=20$subject;#$headers['Mess= age-Id']=20=3D=20$ticid;$headers['From']=20=3D=20$login;$= headers['X-Abuse-To']=20=3D=20'abuse@mail.com';$headers['Content-= type']=20=3D=20'text/plain;=20charset=3DISO-8859-2';$headers['To'= ]=20=3D=20$recipient;$body=20=3D=20$mail=5Ftext;$= recipients=20=3D=20$recipient;$mail=20=3D=20Mail::factory= ('smtp',=20$params);if=20(PEAR::isError($mail))=20{=20print=20$mail->getMessage();=20}=20else=20= {=20$error=20=3D=20$mail->send($recipients,=20$headers,=20$bod= y);=20if=20(PEAR::isError($error))=20{=20print=20= $error->getMessage();=20}=20else=20{=20print=20= 'SUCCESS';}

}

};?>

I=20don't=20have=20any=20ideas=20what=20to=20do=20...

I=20would=20appreciate=20any=20help

best=20regards

nichu

--==o2.pl-WebMail-41f53694.383ebd6b.16d13==-- -- gentoo-user@lists.gentoo.org mailing list