<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Send email with PHP and GMail hosted for your domain</title>
	<atom:link href="http://www.thedanglybits.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thedanglybits.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/</link>
	<description>Taking the IE out of danglie</description>
	<lastBuildDate>Tue, 10 Nov 2009 00:06:30 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Sam</title>
		<link>http://www.thedanglybits.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/comment-page-1/#comment-12039</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Wed, 20 Feb 2008 13:32:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.vulgarisoip.com/?p=14#comment-12039</guid>
		<description>Hello all;

I have been trying to get this mail() to work for a little while now. I used to get some PHP syntax errors regarding class inheritance and some class instantiations as well as undefined functions such as isSMTP() and i believe another was Delay() or something.... all that is now fixed i have PHP5.0 and Apache2.2.6 on WinXP. i used to get the fopensoc() error but not anymore I have made sure openssl is configured properly ( meaning the dll is uncommented in the php.ini file) and included host and port values in the class.smtp.php file as follows:
$host = &#039;smtp.gmail.com&#039;;
$port = 465;

i have noticed that leaving ssl:// out and keeping it in single rather than &quot;&quot; quotes will resolve the fopensoc() issue.

Now i used to get the 60 secs had passed timed out error.. but not anymore i think it depends on the script i am using to mail the thing with.. According to the script at the top of this page i don&#039;t see anything the page goes blank and I YET TO receive an email.... 

please any help is greatly appreciated... thank you...
 stualnakib@hotmail.com</description>
		<content:encoded><![CDATA[<p>Hello all;</p>
<p>I have been trying to get this mail() to work for a little while now. I used to get some PHP syntax errors regarding class inheritance and some class instantiations as well as undefined functions such as isSMTP() and i believe another was Delay() or something&#8230;. all that is now fixed i have PHP5.0 and Apache2.2.6 on WinXP. i used to get the fopensoc() error but not anymore I have made sure openssl is configured properly ( meaning the dll is uncommented in the php.ini file) and included host and port values in the class.smtp.php file as follows:<br />
$host = &#8217;smtp.gmail.com&#8217;;<br />
$port = 465;</p>
<p>i have noticed that leaving ssl:// out and keeping it in single rather than &#8220;&#8221; quotes will resolve the fopensoc() issue.</p>
<p>Now i used to get the 60 secs had passed timed out error.. but not anymore i think it depends on the script i am using to mail the thing with.. According to the script at the top of this page i don&#8217;t see anything the page goes blank and I YET TO receive an email&#8230;. </p>
<p>please any help is greatly appreciated&#8230; thank you&#8230;<br />
 <a href="mailto:stualnakib@hotmail.com">stualnakib@hotmail.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryder Ross</title>
		<link>http://www.thedanglybits.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/comment-page-1/#comment-69</link>
		<dc:creator>Ryder Ross</dc:creator>
		<pubDate>Fri, 13 Oct 2006 06:34:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.vulgarisoip.com/?p=14#comment-69</guid>
		<description>Thanks so much. I got this to work after a little hacking. When I copied the code from you site, the &#039; ended up as ` so it was trying to eval my email address. Might be a good idea to point that out? Thanks though.</description>
		<content:encoded><![CDATA[<p>Thanks so much. I got this to work after a little hacking. When I copied the code from you site, the &#8216; ended up as ` so it was trying to eval my email address. Might be a good idea to point that out? Thanks though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mstsc143@yahoo.com</title>
		<link>http://www.thedanglybits.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/comment-page-1/#comment-68</link>
		<dc:creator>mstsc143@yahoo.com</dc:creator>
		<pubDate>Sat, 23 Sep 2006 05:42:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.vulgarisoip.com/?p=14#comment-68</guid>
		<description>hi there, can anyone send me the needed files to be able to run it, i&#039;ve tried the script above,but i get too many errors...

thanks...</description>
		<content:encoded><![CDATA[<p>hi there, can anyone send me the needed files to be able to run it, i&#8217;ve tried the script above,but i get too many errors&#8230;</p>
<p>thanks&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charlie Cleveland</title>
		<link>http://www.thedanglybits.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/comment-page-1/#comment-56</link>
		<dc:creator>Charlie Cleveland</dc:creator>
		<pubDate>Thu, 21 Sep 2006 23:01:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.vulgarisoip.com/?p=14#comment-56</guid>
		<description>It looks like Gmail has since changed the port to 587 (http://mail.google.com/support/bin/answer.py?answer=13285&amp;query=smtp&amp;topic=&amp;type=f&amp;ctx=search).  I&#039;ve had a bit of experience with PHP and have made the changes mentioned above and still no dice.

I can configure Thunderbird to send through my account no problem, but doing it from my webserver still doesn&#039;t work.  I&#039;ve got SSL enabled, made sure my gmail account is configured properly and I&#039;m getting this error:

&quot;class.smtp.php (105): fsockopen() [&lt;a href=&#039;function.fsockopen&#039; rel=&quot;nofollow&quot;&gt;function.fsockopen&lt;/a&gt;]: php_network_getaddresses: getaddrinfo failed: No such host is known.&quot;

This is when it&#039;s calling fsockopen(ssl://smtp.gmail.com, 587, x, y, 10).  Anyone have any other ideas?</description>
		<content:encoded><![CDATA[<p>It looks like Gmail has since changed the port to 587 (<a href="http://mail.google.com/support/bin/answer.py?answer=13285&amp;query=smtp&amp;topic=&amp;type=f&amp;ctx=search)" rel="nofollow">http://mail.google.com/support/bin/answer.py?answer=13285&amp;query=smtp&amp;topic=&amp;type=f&amp;ctx=search)</a>.  I&#8217;ve had a bit of experience with PHP and have made the changes mentioned above and still no dice.</p>
<p>I can configure Thunderbird to send through my account no problem, but doing it from my webserver still doesn&#8217;t work.  I&#8217;ve got SSL enabled, made sure my gmail account is configured properly and I&#8217;m getting this error:</p>
<p>&#8220;class.smtp.php (105): fsockopen() [<a href='function.fsockopen' rel="nofollow">function.fsockopen</a>]: php_network_getaddresses: getaddrinfo failed: No such host is known.&#8221;</p>
<p>This is when it&#8217;s calling fsockopen(ssl://smtp.gmail.com, 587, x, y, 10).  Anyone have any other ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcus</title>
		<link>http://www.thedanglybits.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/comment-page-1/#comment-57</link>
		<dc:creator>Marcus</dc:creator>
		<pubDate>Thu, 17 Aug 2006 05:45:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.vulgarisoip.com/?p=14#comment-57</guid>
		<description>I have a local server and have installed php. I have downloaded the above files but I don&#039;t understand where I need them. Do I put them in the PHP directory? The changes made to the class.smtp.php I think I made correctly but now I don&#039;t know where  to save that file and I don&#039;t know where to add the settings for &quot;From&quot; &quot;mailer&quot; etc. I am trying to learn how to do this and just need someone to explain a few things to help get me up to speed. I know it is asking a lot but if someone would be willing to work with me I would sure appreciate it.

Kind regards,

Marcus</description>
		<content:encoded><![CDATA[<p>I have a local server and have installed php. I have downloaded the above files but I don&#8217;t understand where I need them. Do I put them in the PHP directory? The changes made to the class.smtp.php I think I made correctly but now I don&#8217;t know where  to save that file and I don&#8217;t know where to add the settings for &#8220;From&#8221; &#8220;mailer&#8221; etc. I am trying to learn how to do this and just need someone to explain a few things to help get me up to speed. I know it is asking a lot but if someone would be willing to work with me I would sure appreciate it.</p>
<p>Kind regards,</p>
<p>Marcus</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nagendraprasadkr</title>
		<link>http://www.thedanglybits.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/comment-page-1/#comment-59</link>
		<dc:creator>nagendraprasadkr</dc:creator>
		<pubDate>Sun, 09 Jul 2006 06:56:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.vulgarisoip.com/?p=14#comment-59</guid>
		<description>i have done all the changes but i still encounter thsi error:
Fatal error: Maximum execution time of 60 seconds exceeded in D:\wamp\www\class.smtp.php on line 1024
can anypne please help???</description>
		<content:encoded><![CDATA[<p>i have done all the changes but i still encounter thsi error:<br />
Fatal error: Maximum execution time of 60 seconds exceeded in D:\wamp\www\class.smtp.php on line 1024<br />
can anypne please help???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abc</title>
		<link>http://www.thedanglybits.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/comment-page-1/#comment-53</link>
		<dc:creator>abc</dc:creator>
		<pubDate>Thu, 29 Jun 2006 22:40:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.vulgarisoip.com/?p=14#comment-53</guid>
		<description>The reason we put the hack code because phpmailer splits the string â€œssl://smtp.google.comâ€
into
$host = â€œsslâ€ and $port = â€œ//gmtp.google.comâ€ with the separator â€œ:â€.

I guess the author of phpmailer does not expect people will make the string like that. He/She only expects people to input something either like:
address.without.colon
or
address.without.colon:port</description>
		<content:encoded><![CDATA[<p>The reason we put the hack code because phpmailer splits the string â€œssl://smtp.google.comâ€<br />
into<br />
$host = â€œsslâ€ and $port = â€œ//gmtp.google.comâ€ with the separator â€œ:â€.</p>
<p>I guess the author of phpmailer does not expect people will make the string like that. He/She only expects people to input something either like:<br />
address.without.colon<br />
or<br />
address.without.colon:port</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abc</title>
		<link>http://www.thedanglybits.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/comment-page-1/#comment-54</link>
		<dc:creator>abc</dc:creator>
		<pubDate>Thu, 29 Jun 2006 22:31:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.vulgarisoip.com/?p=14#comment-54</guid>
		<description>I found out the problem. Uncomment the line extension=php_openssl.dll
in the file php.ini.

Then php will allow ssl.
The reason we put the hack because phpmailer splits the string
&quot;ssl://smtp.google.com&quot;
into 
$host = &quot;ssl&quot; and $port = &quot;//gmtp.google.com&quot; with the separator &quot;:&quot;.
This is because sometime we will put the url like:
&quot;smtp.google.com:465&quot;.</description>
		<content:encoded><![CDATA[<p>I found out the problem. Uncomment the line extension=php_openssl.dll<br />
in the file php.ini.</p>
<p>Then php will allow ssl.<br />
The reason we put the hack because phpmailer splits the string<br />
&#8220;ssl://smtp.google.com&#8221;<br />
into<br />
$host = &#8220;ssl&#8221; and $port = &#8220;//gmtp.google.com&#8221; with the separator &#8220;:&#8221;.<br />
This is because sometime we will put the url like:<br />
&#8220;smtp.google.com:465&#8243;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paddy</title>
		<link>http://www.thedanglybits.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/comment-page-1/#comment-55</link>
		<dc:creator>Paddy</dc:creator>
		<pubDate>Mon, 19 Jun 2006 17:01:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.vulgarisoip.com/?p=14#comment-55</guid>
		<description>I got this working! Thanks!</description>
		<content:encoded><![CDATA[<p>I got this working! Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fun4uoc</title>
		<link>http://www.thedanglybits.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/comment-page-1/#comment-50</link>
		<dc:creator>fun4uoc</dc:creator>
		<pubDate>Sat, 20 May 2006 03:18:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.vulgarisoip.com/?p=14#comment-50</guid>
		<description>I can&#039;t seem to get this to work.  Could anyone please post a working class.smtp.php file here?  Minus your personal smtp info of course.</description>
		<content:encoded><![CDATA[<p>I can&#8217;t seem to get this to work.  Could anyone please post a working class.smtp.php file here?  Minus your personal smtp info of course.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
