<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Send email with PHP and GMail hosted for your domain</title>
	<link>http://www.vulgarisoip.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/</link>
	<description>CTO during the week, CBO during the weekend</description>
	<pubDate>Mon, 01 Dec 2008 17:38:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: Sam</title>
		<link>http://www.vulgarisoip.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/#comment-12039</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Wed, 20 Feb 2008 13:32:16 +0000</pubDate>
		<guid>http://www.vulgarisoip.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/#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 = 'smtp.gmail.com';
$port = 465;

i have noticed that leaving ssl:// out and keeping it in single rather than "" 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'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.vulgarisoip.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/#comment-69</link>
		<dc:creator>Ryder Ross</dc:creator>
		<pubDate>Fri, 13 Oct 2006 06:34:56 +0000</pubDate>
		<guid>http://www.vulgarisoip.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/#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 ' 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.vulgarisoip.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/#comment-68</link>
		<dc:creator>mstsc143@yahoo.com</dc:creator>
		<pubDate>Sat, 23 Sep 2006 05:42:07 +0000</pubDate>
		<guid>http://www.vulgarisoip.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/#comment-68</guid>
		<description>hi there, can anyone send me the needed files to be able to run it, i'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.vulgarisoip.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/#comment-56</link>
		<dc:creator>Charlie Cleveland</dc:creator>
		<pubDate>Thu, 21 Sep 2006 23:01:29 +0000</pubDate>
		<guid>http://www.vulgarisoip.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/#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&#38;query=smtp&#38;topic=&#38;type=f&#38;ctx=search).  I'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't work.  I've got SSL enabled, made sure my gmail account is configured properly and I'm getting this error:

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

This is when it'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 (http://mail.google.com/support/bin/answer.py?answer=13285&amp;query=smtp&amp;topic=&amp;type=f&amp;ctx=search).  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.vulgarisoip.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/#comment-57</link>
		<dc:creator>Marcus</dc:creator>
		<pubDate>Thu, 17 Aug 2006 05:45:26 +0000</pubDate>
		<guid>http://www.vulgarisoip.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/#comment-57</guid>
		<description>I have a local server and have installed php. I have downloaded the above files but I don'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't know where  to save that file and I don't know where to add the settings for "From" "mailer" 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.vulgarisoip.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/#comment-59</link>
		<dc:creator>nagendraprasadkr</dc:creator>
		<pubDate>Sun, 09 Jul 2006 06:56:37 +0000</pubDate>
		<guid>http://www.vulgarisoip.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/#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.vulgarisoip.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/#comment-53</link>
		<dc:creator>abc</dc:creator>
		<pubDate>Thu, 29 Jun 2006 22:40:56 +0000</pubDate>
		<guid>http://www.vulgarisoip.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/#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.vulgarisoip.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/#comment-54</link>
		<dc:creator>abc</dc:creator>
		<pubDate>Thu, 29 Jun 2006 22:31:38 +0000</pubDate>
		<guid>http://www.vulgarisoip.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/#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
"ssl://smtp.google.com"
into 
$host = "ssl" and $port = "//gmtp.google.com" with the separator ":".
This is because sometime we will put the url like:
"smtp.google.com:465".</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.vulgarisoip.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/#comment-55</link>
		<dc:creator>Paddy</dc:creator>
		<pubDate>Mon, 19 Jun 2006 17:01:31 +0000</pubDate>
		<guid>http://www.vulgarisoip.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/#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.vulgarisoip.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/#comment-50</link>
		<dc:creator>fun4uoc</dc:creator>
		<pubDate>Sat, 20 May 2006 03:18:48 +0000</pubDate>
		<guid>http://www.vulgarisoip.com/2006/03/27/send-email-with-php-and-gmail-hosted-for-your-domain/#comment-50</guid>
		<description>I can'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>
