<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
  <title>PEAR Forum</title>
  <link>http://www.pear-forum.org/index.php</link>
  <description>PHP Extension and Application Repository</description>
  <language>english</language>
  <copyright>(c) Copyright 2006-2010 by PEAR Forum</copyright>
  <managingEditor>PEAR-forum.org &lt;pear@mowd.nl&gt;</managingEditor>
  <webMaster>PEAR-forum.org &lt;pear@mowd.nl&gt;</webMaster>
  <pubDate>Tue Sep 07, 2010 6:46 pm</pubDate>
  <lastBuildDate>Tue Sep 07, 2010 6:46 pm</lastBuildDate>
  <docs>http://backend.userland.com/rss</docs>
  <generator>phpBB2 RSS Syndication Mod by Lucas</generator>
  <ttl>1</ttl>

  <image>
    <title>PEAR Forum</title>
    <url>http://www.pear-forum.org/images/pear-icon.png</url>
    <link>http://www.pear-forum.org/</link>
    <description>PHP Extension and Application Repository</description>
  </image>

                                      <item>
                                        <title>Re: SMTP with Gmail using mail.php , not load page for response</title>
                                        <link>http://www.pear-forum.org/viewtopic.php?p=5280#5280</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.pear-forum.org/profile.php?mode=viewprofile&amp;amp;u=3928'&gt;voidzone&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sat Dec 12, 2009 9:43 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      &lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;duongld wrote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;1) edit the file /usr/share/pear/Net/SMTP.php&lt;br /&gt;
2) at the end of function auth(), comment out the call to _negotiate() &lt;br /&gt;
&lt;br /&gt;
I had the same problem and this fix my problem.&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
this has helped me to fix the 'bug'.&lt;br /&gt;
&lt;br /&gt;
seems like the auth works in the first place but then pear sends an EHLO again (to conform to the RFC). google forgets then the first auth and waits for another auth that never comes.&lt;br /&gt;
&lt;br /&gt;
I don't know whose fault this is but duongld's fix works for me.</description>
                                        <comments>http://www.pear-forum.org/viewtopic.php?p=5280#5280</comments>
                                        <author>voidzone</author>
                                        <pubDate>Sat Dec 12, 2009 9:43 pm</pubDate>
                                        <guid isPermaLink="true">http://www.pear-forum.org/viewtopic.php?p=5280#5280</guid>
                                      </item>
                                      <item>
                                        <title>Re: SMTP with Gmail using mail.php , not load page for response</title>
                                        <link>http://www.pear-forum.org/viewtopic.php?p=4997#4997</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.pear-forum.org/profile.php?mode=viewprofile&amp;amp;u=3790'&gt;jtb2468&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Thu May 28, 2009 5:36 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      I found this on Google as well.&lt;br /&gt;
&lt;br /&gt;
Koyama's solution fixed my problem.  I ran the script that Koyama posted and got the fatal error.  I wasn't sure how to install the Net_SMTP PEAR package.  If you have a similar problem you can install it like this from the terminal:&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;# pear install Net_SMTP&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
If you are using Ubuntu, you will need to use sudo to run that command.</description>
                                        <comments>http://www.pear-forum.org/viewtopic.php?p=4997#4997</comments>
                                        <author>jtb2468</author>
                                        <pubDate>Thu May 28, 2009 5:36 pm</pubDate>
                                        <guid isPermaLink="true">http://www.pear-forum.org/viewtopic.php?p=4997#4997</guid>
                                      </item>
                                      <item>
                                        <title>Re: SMTP with Gmail using mail.php , not load page for response</title>
                                        <link>http://www.pear-forum.org/viewtopic.php?p=4941#4941</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.pear-forum.org/profile.php?mode=viewprofile&amp;amp;u=3769'&gt;duongld&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sat May 02, 2009 3:12 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      1) edit the file /usr/share/pear/Net/SMTP.php&lt;br /&gt;
2) at the end of function auth(), comment out the call to _negotiate() &lt;br /&gt;
&lt;br /&gt;
I had the same problem and this fix my problem.</description>
                                        <comments>http://www.pear-forum.org/viewtopic.php?p=4941#4941</comments>
                                        <author>duongld</author>
                                        <pubDate>Sat May 02, 2009 3:12 am</pubDate>
                                        <guid isPermaLink="true">http://www.pear-forum.org/viewtopic.php?p=4941#4941</guid>
                                      </item>
                                      <item>
                                        <title>Re: SMTP with Gmail using mail.php , not load page for response</title>
                                        <link>http://www.pear-forum.org/viewtopic.php?p=4857#4857</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.pear-forum.org/profile.php?mode=viewprofile&amp;amp;u=3731'&gt;koyama&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue Mar 17, 2009 10:02 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Sorry for digging up this old thread which I found via Google.&lt;br /&gt;
&lt;br /&gt;
I had similar problems. It turned out that my web host didn't have Net_SMTP. So I downloaded the package from PEAR and included it manually.&lt;br /&gt;
&lt;br /&gt;
This may seem like a stupid advice, but on a shared web hosting you can check in you have Net_SMTP like this:&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$x = new Net_SMTP&amp;#40;&amp;#41;;&lt;br /&gt;
var_dump&amp;#40;$x&amp;#41;;&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
If you get a fatal error, there you have the problem.</description>
                                        <comments>http://www.pear-forum.org/viewtopic.php?p=4857#4857</comments>
                                        <author>koyama</author>
                                        <pubDate>Tue Mar 17, 2009 10:02 pm</pubDate>
                                        <guid isPermaLink="true">http://www.pear-forum.org/viewtopic.php?p=4857#4857</guid>
                                      </item>
                                      <item>
                                        <title>Re: SMTP with Gmail using mail.php , not load page for response</title>
                                        <link>http://www.pear-forum.org/viewtopic.php?p=3934#3934</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.pear-forum.org/profile.php?mode=viewprofile&amp;amp;u=3416'&gt;chifliiiii&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Tue May 20, 2008 7:00 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Any luck with these? i get the same error&lt;br /&gt;
DEBUG: Recv: 220 mx.google.com ESMTP d6sm350303fga.2 DEBUG: Send: EHLO localhost DEBUG: Recv: 250-mx.google.com at your service, [87.218.227.97] DEBUG: Recv: 250-SIZE 28311552 DEBUG: Recv: 250-8BITMIME DEBUG: Recv: 250-AUTH LOGIN PLAIN DEBUG: Recv: 250 ENHANCEDSTATUSCODES DEBUG: Send: AUTH LOGIN DEBUG: Recv: 334 VXNlcm5hbWU6 DEBUG: Send: Y2hpZmxpQGdtYWlsLmNvbQ== DEBUG: Recv: 334 UGFzc3dvcmQ6 DEBUG: Send: Y2hpZmxpMjk4NA== DEBUG: Recv: 235 2.7.0 Accepted DEBUG: Send: EHLO localhost DEBUG: Recv: 250-mx.google.com at your service, [87.218.227.97] DEBUG: Recv: 250-SIZE 28311552 DEBUG: Recv: 250-8BITMIME DEBUG: Recv: 250-AUTH LOGIN PLAIN DEBUG: Recv: 250 ENHANCEDSTATUSCODES DEBUG: Send: MAIL FROM: DEBUG: Recv: 530-5.5.1 Authentication Required. Learn more at DEBUG: Recv: 530 5.5.1 &lt;a href=&quot;http://mail.google.com/support/bin/answer.py?answer=14257&quot; target=&quot;_blank&quot;&gt;http://mail.google.com/support/bin/answer.py?answer=14257&lt;/a&gt; d6sm350303fga.2&lt;br /&gt;
&lt;br /&gt;
it seems like the auth is not working . I also tried on another email host and i get a diferent error telling me that i need to use the pop before to check that is a secure connection. &lt;br /&gt;
I searched all over the net so i think i got the correct code.&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;// FUNCION DE ENVIO DE EMAILZ&lt;br /&gt;
function mandaremail&amp;#40;$de,$para,$sujeto,$mensaje&amp;#41;&amp;#123;&lt;br /&gt;
require_once &amp;#40;&amp;quot;Mail/mime.php&amp;quot;&amp;#41;; &lt;br /&gt;
&amp;nbsp;require_once &amp;quot;Mail.php&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
$headers&amp;#91;'From'&amp;#93;=$de;&lt;br /&gt;
&amp;nbsp;$headers&amp;#91;'To'&amp;#93; =$para;&lt;br /&gt;
&amp;nbsp;$headers&amp;#91;'Subject'&amp;#93;= $sujeto;&lt;br /&gt;
&amp;nbsp;$crlf = &amp;quot;\n&amp;quot;;&lt;br /&gt;
$mime = new Mail_mime&amp;#40;$crlf&amp;#41;;&lt;br /&gt;
$parametros&amp;#91;'host'&amp;#93;='ssl&amp;#58;//smtp.gmail.com';&lt;br /&gt;
$parametros&amp;#91;'auth'&amp;#93;=true;&lt;br /&gt;
$parametros&amp;#91;'port'&amp;#93;=465;&lt;br /&gt;
$parametros&amp;#91;'username'&amp;#93;='chifli*****';&lt;br /&gt;
$parametros&amp;#91;'password'&amp;#93;='*******';&lt;br /&gt;
$parametros&amp;#91;'debug'&amp;#93;=true;&lt;br /&gt;
$parametros&amp;#91;'persist'&amp;#93;=true;&lt;br /&gt;
$smtp =&amp;amp; Mail&amp;#58;&amp;#58;factory&amp;#40;'smtp',$parametros&amp;#41;;&lt;br /&gt;
$mime-&amp;gt;setHTMLBody&amp;#40;$mensaje&amp;#41;;&lt;br /&gt;
$body= $mime-&amp;gt;get&amp;#40;&amp;#41;;&lt;br /&gt;
$headers=$mime-&amp;gt;headers&amp;#40;$headers&amp;#41;;&lt;br /&gt;
$mail=$smtp-&amp;gt;send&amp;#40;$to, $headers, $body&amp;#41;;&lt;br /&gt;
print 'debug2';&lt;br /&gt;
if &amp;#40;PEAR&amp;#58;&amp;#58;isError&amp;#40;$mail&amp;#41;&amp;#41; &amp;#123;&lt;br /&gt;
&amp;nbsp; echo&amp;#40;&amp;quot;&amp;lt;p&amp;gt;&amp;quot; . $mail-&amp;gt;getMessage&amp;#40;&amp;#41; . &amp;quot;&amp;lt;/p&amp;gt;&amp;quot;&amp;#41;;&lt;br /&gt;
&amp;nbsp;&amp;#125; &lt;br /&gt;
&amp;#125;&amp;nbsp; &amp;nbsp;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;</description>
                                        <comments>http://www.pear-forum.org/viewtopic.php?p=3934#3934</comments>
                                        <author>chifliiiii</author>
                                        <pubDate>Tue May 20, 2008 7:00 pm</pubDate>
                                        <guid isPermaLink="true">http://www.pear-forum.org/viewtopic.php?p=3934#3934</guid>
                                      </item>
                                      <item>
                                        <title>SMTP with Gmail using mail.php , not load</title>
                                        <link>http://www.pear-forum.org/viewtopic.php?p=3723#3723</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.pear-forum.org/profile.php?mode=viewprofile&amp;amp;u=3370'&gt;Adalberto&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Sat Apr 05, 2008 11:13 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Hi.&lt;br /&gt;
Definitely I have to pass the parameter $host=&amp;quot;ssl://smtp.gmail.com&amp;quot;; I already wrote it.&lt;br /&gt;
&lt;br /&gt;
When I executing my file .php with  Mail.php, I'm getting the error :&lt;br /&gt;
&lt;br /&gt;
from getMessage() method  I get :&lt;br /&gt;
&lt;span style=&quot;font-weight: bold&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-style: italic&quot;&gt;MESSAGE :Failed to set sender: &lt;a href=&quot;mailto:aonascimento@gmail.com&quot;&gt;aonascimento@gmail.com&lt;/a&gt; [SMTP: Invalid response code received from server (code: 530, response: 5.5.1 Authentication Required. Learn more at 5.5.1 &lt;a href=&quot;http://mail.google.com/support/bin/answer.py?answer=14257&quot; target=&quot;_blank&quot;&gt;http://mail.google.com/support/bin/answer.py?answer=14257&lt;/a&gt; 36sm8707536aga.17)]&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
from getCode() method :  &lt;span style=&quot;font-weight: bold&quot;&gt;&lt;span style=&quot;font-style: italic&quot;&gt;10004&lt;/span&gt;&lt;/span&gt;</description>
                                        <comments>http://www.pear-forum.org/viewtopic.php?p=3723#3723</comments>
                                        <author>Adalberto</author>
                                        <pubDate>Sat Apr 05, 2008 11:13 pm</pubDate>
                                        <guid isPermaLink="true">http://www.pear-forum.org/viewtopic.php?p=3723#3723</guid>
                                      </item>
                                      <item>
                                        <title>Re: Post subject: SMTP with Gmail using mail.php , not load</title>
                                        <link>http://www.pear-forum.org/viewtopic.php?p=3719#3719</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.pear-forum.org/profile.php?mode=viewprofile&amp;amp;u=918'&gt;mark&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Fri Apr 04, 2008 9:10 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      &lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Adalberto wrote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;You wrote: &lt;br /&gt;
&lt;span style=&quot;font-style: italic&quot;&gt;You could debug your script (and the PEAR scripts) line by line to find the line that causes this &amp;quot;hanging&amp;quot; problem.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Could you give me a hint to do that ?&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Well, you add some debug code (like die('test')&lt;img src=&quot;images/smiles/icon_wink.gif&quot; alt=&quot;Wink&quot; border=&quot;0&quot; /&gt; to your own code and the files from the Mail package (and probably Net_SMTP and Net_Socket) to different places. This way you'll see which parts are reached, and where PHP stops working. If you have a real debugger (like in Zend Studio) this is even easier.</description>
                                        <comments>http://www.pear-forum.org/viewtopic.php?p=3719#3719</comments>
                                        <author>mark</author>
                                        <pubDate>Fri Apr 04, 2008 9:10 pm</pubDate>
                                        <guid isPermaLink="true">http://www.pear-forum.org/viewtopic.php?p=3719#3719</guid>
                                      </item>
                                      <item>
                                        <title>Post subject: SMTP with Gmail using mail.php , not load</title>
                                        <link>http://www.pear-forum.org/viewtopic.php?p=3718#3718</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.pear-forum.org/profile.php?mode=viewprofile&amp;amp;u=3370'&gt;Adalberto&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Fri Apr 04, 2008 8:59 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Mar, thanls again, but the same error occurs.&lt;br /&gt;
&lt;br /&gt;
I have changed the parameter $from=&amp;quot;aonascimento@gmail.com&amp;quot;;&lt;br /&gt;
But I have got :&lt;br /&gt;
MESSAGE :unable to set sender to [aonascimento@gmail.com]&lt;br /&gt;
&lt;br /&gt;
And the other &amp;quot;hanging&amp;quot; error  contines too.&lt;br /&gt;
&lt;br /&gt;
You wrote: &lt;br /&gt;
&lt;span style=&quot;font-style: italic&quot;&gt;You could debug your script (and the PEAR scripts) line by line to find the line that causes this &amp;quot;hanging&amp;quot; problem.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Could you give me a hint to do that ?</description>
                                        <comments>http://www.pear-forum.org/viewtopic.php?p=3718#3718</comments>
                                        <author>Adalberto</author>
                                        <pubDate>Fri Apr 04, 2008 8:59 pm</pubDate>
                                        <guid isPermaLink="true">http://www.pear-forum.org/viewtopic.php?p=3718#3718</guid>
                                      </item>
                                      <item>
                                        <title>Re: Post subject: SMTP with Gmail using mail.php , not load</title>
                                        <link>http://www.pear-forum.org/viewtopic.php?p=3717#3717</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.pear-forum.org/profile.php?mode=viewprofile&amp;amp;u=918'&gt;mark&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Fri Apr 04, 2008 8:41 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      &lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Adalberto wrote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;The value sender is in $from=&amp;quot;Adalberto &amp;lt;aonascimento@gmail.com&amp;gt;&amp;quot;;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Well, that's wrong, as I already wrote. Only an email address is allowed here.&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Adalberto wrote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;2nd-) If I pass $host=&amp;quot;smtp.gmail.com&amp;quot; with correct credentials, the page doesn't load.&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Note the last user note on this page (it refers to the same problem):&lt;br /&gt;
&lt;a href=&quot;http://pear.php.net/manual/en/package.mail.mail.send.php&quot; target=&quot;_blank&quot;&gt;http://pear.php.net/manual/en/package.mail.mail.send.php&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
You could debug your script (and the PEAR scripts) line by line to find the line that causes this &amp;quot;hanging&amp;quot; problem.</description>
                                        <comments>http://www.pear-forum.org/viewtopic.php?p=3717#3717</comments>
                                        <author>mark</author>
                                        <pubDate>Fri Apr 04, 2008 8:41 pm</pubDate>
                                        <guid isPermaLink="true">http://www.pear-forum.org/viewtopic.php?p=3717#3717</guid>
                                      </item>
                                      <item>
                                        <title>Post subject: SMTP with Gmail using mail.php , not load</title>
                                        <link>http://www.pear-forum.org/viewtopic.php?p=3716#3716</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.pear-forum.org/profile.php?mode=viewprofile&amp;amp;u=3370'&gt;Adalberto&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Fri Apr 04, 2008 8:35 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      I found out , this :&lt;br /&gt;
&lt;br /&gt;
1st - ) When I passed  $host =&amp;quot;ssl://smtp.gmail.com&amp;quot; and I erased my credentials ( username/password) from my .php file . I've got the error : &lt;br /&gt;
&lt;span style=&quot;font-weight: bold&quot;&gt;unable to authenticate to smtp server&lt;/span&gt; . It didn't get to autenticate in server. &lt;br /&gt;
&lt;br /&gt;
But If pass my correct credentials with the same $host, I got the error : &lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: 7px; line-height: normal&quot;&gt;&amp;quot; ...DEBUG: Recv: 235 2.7.0 Accepted DEBUG: Send: EHLO localhost DEBUG: Recv: 250-mx.google.com at your service, [200.148.41.69] DEBUG: Recv: 250-SIZE 28311552 DEBUG: Recv: 250-8BITMIME DEBUG: Recv: 250-AUTH LOGIN PLAIN DEBUG: Recv: 250 ENHANCEDSTATUSCODES DEBUG: Send: MAIL FROM: DEBUG: Recv: 530-5.5.1 Authentication Required. Learn more at DEBUG: Recv: 530 5.5.1 &lt;a href=&quot;http://mail.google.com/support/bin/answer.py?answer=14257&quot; target=&quot;_blank&quot;&gt;http://mail.google.com/support/bin/answer.py?answer=14257&lt;/a&gt; q57sm7681661wrq.5&lt;br /&gt;
MESSAGE :unable to set sender to [aonascimento@gmail.com]&amp;quot; &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
So, Does it correct to say that when I passed my correct credentials I have got to autenticate in smtp.gmail.com, but It's didn't get to SET the sender in e-mail and because it It's returned the error ?&lt;br /&gt;
The value sender is in $from=&amp;quot;Adalberto &amp;lt;aonascimento@gmail.com&amp;gt;&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
2nd-) If I pass $host=&amp;quot;smtp.gmail.com&amp;quot; with correct credentials, the page doesn't load.&lt;br /&gt;
&lt;br /&gt;
I think that in this situation I not getting to autenticate in smtp server.</description>
                                        <comments>http://www.pear-forum.org/viewtopic.php?p=3716#3716</comments>
                                        <author>Adalberto</author>
                                        <pubDate>Fri Apr 04, 2008 8:35 pm</pubDate>
                                        <guid isPermaLink="true">http://www.pear-forum.org/viewtopic.php?p=3716#3716</guid>
                                      </item>
                                      <item>
                                        <title>Re: Post subject: SMTP with Gmail using mail.php , not load </title>
                                        <link>http://www.pear-forum.org/viewtopic.php?p=3715#3715</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.pear-forum.org/profile.php?mode=viewprofile&amp;amp;u=918'&gt;mark&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Fri Apr 04, 2008 6:12 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      &lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Adalberto wrote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;I would like to know the correct form to pass the parameter : $host&lt;br /&gt;
&lt;br /&gt;
$host = &amp;quot;ssl://smtp.gmail.com&amp;quot;; &lt;br /&gt;
or &lt;br /&gt;
$host = &amp;quot;smtp.gmail.com&amp;quot;;&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
The second string is right. To enforce SSL, you'll have to use the right port value (which you're already seem to be doing).&lt;br /&gt;
&lt;br /&gt;
It might help to add the following lines at the beginning of your script&amp;#058;&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
error_reporting&amp;#40;E_ALL&amp;#41;;&lt;br /&gt;
ini_set&amp;#40;'display_errors', 1&amp;#41;;&lt;br /&gt;
require_once 'PEAR.php';&lt;br /&gt;
PEAR&amp;#58;&amp;#58;setErrorHandling&amp;#40;PEAR_ERROR_DIE&amp;#41;;&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Maybe you'll get a more helpful message then.</description>
                                        <comments>http://www.pear-forum.org/viewtopic.php?p=3715#3715</comments>
                                        <author>mark</author>
                                        <pubDate>Fri Apr 04, 2008 6:12 pm</pubDate>
                                        <guid isPermaLink="true">http://www.pear-forum.org/viewtopic.php?p=3715#3715</guid>
                                      </item>
                                      <item>
                                        <title>Post subject: SMTP with Gmail using mail.php , not load page</title>
                                        <link>http://www.pear-forum.org/viewtopic.php?p=3714#3714</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.pear-forum.org/profile.php?mode=viewprofile&amp;amp;u=3370'&gt;Adalberto&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Fri Apr 04, 2008 6:06 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Hi, in according with tihis message :&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold&quot;&gt;unable to set sender to [aonascimento@gmail.com]&lt;/span&gt;&lt;br /&gt;
and with this one :&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold&quot;&gt;smtp PEAR_MAIL_SMTP_ERROR_SENDER &amp;quot;Failed to set sender: from&amp;quot; Setting the sender address failed. Check the RFC-compliances of the sender address and the server connnectivity. &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
It was not possible to set the sender, but it's is very stranger because my user  in gmail exist and I'm using this dclaration :&lt;br /&gt;
&lt;br /&gt;
 $from = &amp;quot;Adalberto &amp;lt;aonascimento@gmail.com&amp;gt;&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
and I have tried  :  $from = &amp;quot;aonascimento@gmail.com&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
But I got the same error . &lt;br /&gt;
I would like to know the correct form to pass the parameter : $host&lt;br /&gt;
&lt;br /&gt;
$host = &amp;quot;ssl://smtp.gmail.com&amp;quot;; &lt;br /&gt;
or &lt;br /&gt;
$host = &amp;quot;smtp.gmail.com&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
In the firts form I got the error above, but in second form my page doesn't load !![/b]</description>
                                        <comments>http://www.pear-forum.org/viewtopic.php?p=3714#3714</comments>
                                        <author>Adalberto</author>
                                        <pubDate>Fri Apr 04, 2008 6:06 pm</pubDate>
                                        <guid isPermaLink="true">http://www.pear-forum.org/viewtopic.php?p=3714#3714</guid>
                                      </item>
                                      <item>
                                        <title>Re: SMTP with Gmail using mail.php , not load page for response</title>
                                        <link>http://www.pear-forum.org/viewtopic.php?p=3713#3713</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.pear-forum.org/profile.php?mode=viewprofile&amp;amp;u=918'&gt;mark&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Fri Apr 04, 2008 5:34 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      According to the error message, either your credentials (username / password) are wrong or the 'from' parameter has an invalid syntax (should be only 'user@example.com', without anything else like names). &lt;br /&gt;
&lt;br /&gt;
Another possibility is that you've tried to connect to often to Google's server. The suggestions on the mentioned Google help page might help in this case (=&amp;gt; captcha).</description>
                                        <comments>http://www.pear-forum.org/viewtopic.php?p=3713#3713</comments>
                                        <author>mark</author>
                                        <pubDate>Fri Apr 04, 2008 5:34 pm</pubDate>
                                        <guid isPermaLink="true">http://www.pear-forum.org/viewtopic.php?p=3713#3713</guid>
                                      </item>
                                      <item>
                                        <title>SMTP with Gmail using mail.php , not load page for response</title>
                                        <link>http://www.pear-forum.org/viewtopic.php?p=3712#3712</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.pear-forum.org/profile.php?mode=viewprofile&amp;amp;u=3370'&gt;Adalberto&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Fri Apr 04, 2008 5:27 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Mark, thanks for your help. I'm learning how to use this forum, because it i have sended a private message to you. I'm sorry for that.&lt;br /&gt;
&lt;br /&gt;
Anyway,  I have changed my code like your sugestion and now I got the error :&lt;br /&gt;
DEBUG: Recv: 220 mx.google.com ESMTP c20sm9004473ana.13 DEBUG: Send: EHLO localhost DEBUG: Recv: 250-mx.google.com at your service, [200.148.49.61] DEBUG: Recv: 250-SIZE 28311552 DEBUG: Recv: 250-8BITMIME DEBUG: Recv: 250-AUTH LOGIN PLAIN DEBUG: Recv: 250 ENHANCEDSTATUSCODES DEBUG: Send: AUTH LOGIN DEBUG: Recv: 334 VXNlcm5hbWU6 DEBUG: Send: YW9uYXNjaW1lbnRv DEBUG: Recv: 334 UGFzc3dvcmQ6 DEBUG: Send: IzEwMCVvY3A= DEBUG: Recv: 235 2.7.0 Accepted DEBUG: Send: EHLO localhost DEBUG: Recv: 250-mx.google.com at your service, [200.148.45.64] DEBUG: Recv: 250-SIZE 28311552 DEBUG: Recv: 250-8BITMIME DEBUG: Recv: 250-AUTH LOGIN PLAIN DEBUG: Recv: 250 ENHANCEDSTATUSCODES DEBUG: Send: MAIL FROM: DEBUG: Recv: 530-5.5.1 Authentication Required. Learn more at DEBUG: Recv: 530 5.5.1 &lt;a href=&quot;http://mail.google.com/support/bin/answer.py?answer=14257&quot; target=&quot;_blank&quot;&gt;http://mail.google.com/support/bin/answer.py?answer=14257&lt;/a&gt; c20sm9004473ana.13&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold&quot;&gt;unable to set sender to [aonascimento@gmail.com]&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Look, this site is a portuguese site : &lt;br /&gt;
&lt;a href=&quot;http://mail.google.com/support/bin/answer.py?answer=14257&quot; target=&quot;_blank&quot;&gt;http://mail.google.com/support/bin/answer.py?answer=14257&lt;/a&gt; c20sm9004473ana.13&lt;br /&gt;
&lt;br /&gt;
I m lookig for answer in :&lt;br /&gt;
&lt;span style=&quot;font-weight: bold&quot;&gt;http://pear.php.net/manual/en/package.mail.mail.send.php&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
And in this site I found out this information :&lt;br /&gt;
&lt;span style=&quot;font-weight: bold&quot;&gt;&lt;br /&gt;
smtp	PEAR_MAIL_SMTP_ERROR_SENDER	 &amp;quot;Failed to set sender: from&amp;quot;  	 Setting the sender address failed. 	 Check the RFC-compliances of the sender address and the server connnectivity. &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Anothers importants information  are :&lt;br /&gt;
I'm using Iceweasel browers from mozilla. &lt;br /&gt;
I have this packages :&lt;br /&gt;
Desejado=U=Desconhecido/Instalar/Remover/aPagar/H=Manter&lt;br /&gt;
| status=Não/Instalado/arquiv.-Config./U=Descomp./Falhou-config/H=semi-inst.&lt;br /&gt;
|/ Erro?=(nenhum)/H=Mantido/precisa-Reinst./X=os dois problemas (status,Erro: maiúsculas=ruim)&lt;br /&gt;
||/ Nome                      Versão                   Descrição&lt;br /&gt;
+++-=========================-=========================-==================================================================&lt;br /&gt;
un  php-auth-sasl             &amp;lt;nenhuma&amp;gt;                 (nenhuma descrição disponível)&lt;br /&gt;
ii  php-mail                       1.1.6-2                   PHP PEAR module for sending email&lt;br /&gt;
ii  php-net-smtp              1.2.6-2                   PHP PEAR module implementing SMTP protocol&lt;br /&gt;
ii  php-net-socket            1.0.6-2                   PHP PEAR Network Socket Interface module&lt;br /&gt;
ii  php-pear                  5.2.0-8+etch10            PEAR - PHP Extension and Application Repository&lt;br /&gt;
&lt;br /&gt;
Maybe version is not correct ?&lt;br /&gt;
Thanks a lot.</description>
                                        <comments>http://www.pear-forum.org/viewtopic.php?p=3712#3712</comments>
                                        <author>Adalberto</author>
                                        <pubDate>Fri Apr 04, 2008 5:27 pm</pubDate>
                                        <guid isPermaLink="true">http://www.pear-forum.org/viewtopic.php?p=3712#3712</guid>
                                      </item>
                                      <item>
                                        <title>Re: SMTP with Gmail using mail.php , not load page for response</title>
                                        <link>http://www.pear-forum.org/viewtopic.php?p=3711#3711</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.pear-forum.org/profile.php?mode=viewprofile&amp;amp;u=918'&gt;mark&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Fri Apr 04, 2008 4:34 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Please try to replace&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
$auth = &amp;quot;true&amp;quot;; &lt;br /&gt;
$debug= &amp;quot;true&amp;quot;;&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
by&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&lt;br /&gt;
$auth = true; &lt;br /&gt;
$debug= true;&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Both parameters expect boolean values, and especially $auth is checked by an is_string() check.</description>
                                        <comments>http://www.pear-forum.org/viewtopic.php?p=3711#3711</comments>
                                        <author>mark</author>
                                        <pubDate>Fri Apr 04, 2008 4:34 pm</pubDate>
                                        <guid isPermaLink="true">http://www.pear-forum.org/viewtopic.php?p=3711#3711</guid>
                                      </item></channel></rss>