<?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: CakePHP Contact Form &#8211; Quick and Dirty</title>
	<atom:link href="http://www.webdevelopment2.com/cakephp-contact-form-quick-dirty/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webdevelopment2.com/cakephp-contact-form-quick-dirty/</link>
	<description>Quick and Dirty Web Development for Web 2.0: CakePHP, Prototype, JQuery, and lots more.</description>
	<lastBuildDate>Sun, 14 Mar 2010 02:32:40 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: CJL999</title>
		<link>http://www.webdevelopment2.com/cakephp-contact-form-quick-dirty/comment-page-1/#comment-28391</link>
		<dc:creator>CJL999</dc:creator>
		<pubDate>Sun, 24 Jan 2010 14:00:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevelopment2.com/?p=343#comment-28391</guid>
		<description>Hi glen, maybe you should change the 
$this-&gt;Email-&gt;to =  &#039;To yourname &#039;;
or change the cake&#039;s default email (test@test.com) to any mail you want
and dont forget to enable php_openssl extension before send your mail.</description>
		<content:encoded><![CDATA[<p>Hi glen, maybe you should change the<br />
$this-&gt;Email-&gt;to =  &#8216;To yourname &#8216;;<br />
or change the cake&#8217;s default email (test@test.com) to any mail you want<br />
and dont forget to enable php_openssl extension before send your mail.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: glen hughes</title>
		<link>http://www.webdevelopment2.com/cakephp-contact-form-quick-dirty/comment-page-1/#comment-28383</link>
		<dc:creator>glen hughes</dc:creator>
		<pubDate>Thu, 14 Jan 2010 16:36:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevelopment2.com/?p=343#comment-28383</guid>
		<description>I am attempting to use this but am consistently getting a &quot;mail not sent&quot; error.  When I add debug($this-&gt;data);exit; after the $this-&gt;Session-&gt;setFlash(&#039;Mail Not Sent&#039;); I get

Array
(
    [Contact] =&gt; Array
        (
            [name] =&gt; test
            [email] =&gt; test@test.com
            [subject] =&gt; testing
            [message] =&gt; Test email message 
        )

)
So it appears that all fields are working properly.  Is there a method to debug this and figure out why its not being sent?

Any thoughts would be much appreciated.</description>
		<content:encoded><![CDATA[<p>I am attempting to use this but am consistently getting a &#8220;mail not sent&#8221; error.  When I add debug($this-&gt;data);exit; after the $this-&gt;Session-&gt;setFlash(&#8216;Mail Not Sent&#8217;); I get</p>
<p>Array<br />
(<br />
    [Contact] =&gt; Array<br />
        (<br />
            [name] =&gt; test<br />
            [email] =&gt; <a href="mailto:test@test.com">test@test.com</a><br />
            [subject] =&gt; testing<br />
            [message] =&gt; Test email message<br />
        )</p>
<p>)<br />
So it appears that all fields are working properly.  Is there a method to debug this and figure out why its not being sent?</p>
<p>Any thoughts would be much appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BiBi</title>
		<link>http://www.webdevelopment2.com/cakephp-contact-form-quick-dirty/comment-page-1/#comment-28026</link>
		<dc:creator>BiBi</dc:creator>
		<pubDate>Wed, 21 Oct 2009 09:25:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevelopment2.com/?p=343#comment-28026</guid>
		<description>Hi, Anoop, you can use $this-&gt;Model-&gt;saveAll($data);

http://karaoke.com.vn &lt;= I use CakePHP,too.</description>
		<content:encoded><![CDATA[<p>Hi, Anoop, you can use $this-&gt;Model-&gt;saveAll($data);</p>
<p><a href="http://karaoke.com.vn" rel="nofollow">http://karaoke.com.vn</a> &lt;= I use CakePHP,too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DW</title>
		<link>http://www.webdevelopment2.com/cakephp-contact-form-quick-dirty/comment-page-1/#comment-27856</link>
		<dc:creator>DW</dc:creator>
		<pubDate>Mon, 16 Mar 2009 02:30:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevelopment2.com/?p=343#comment-27856</guid>
		<description>You are a legend, I&#039;ve had so many issues getting these annoying contact forms to work.

Cheers :D</description>
		<content:encoded><![CDATA[<p>You are a legend, I&#8217;ve had so many issues getting these annoying contact forms to work.</p>
<p>Cheers <img src='http://www.webdevelopment2.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rubendelafuente</title>
		<link>http://www.webdevelopment2.com/cakephp-contact-form-quick-dirty/comment-page-1/#comment-27853</link>
		<dc:creator>rubendelafuente</dc:creator>
		<pubDate>Thu, 12 Mar 2009 20:57:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevelopment2.com/?p=343#comment-27853</guid>
		<description>Hi,
thanks for your post I have been very useful.

&lt;abbr&gt;&lt;em&gt;rubendelafuente’s last blog post..&lt;a href=&quot;http://feedproxy.google.com/~r/rubendelafuente/~3/NBU3yzqppao/&quot; rel=&quot;nofollow&quot;&gt;Cliente subversion para visual studio 2008&lt;/a&gt;&lt;/abbr&gt;&lt;/em&gt;</description>
		<content:encoded><![CDATA[<p>Hi,<br />
thanks for your post I have been very useful.</p>
<p><abbr><em>rubendelafuente’s last blog post..<a href="http://feedproxy.google.com/~r/rubendelafuente/~3/NBU3yzqppao/" rel="nofollow">Cliente subversion para visual studio 2008</a></em></abbr></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anoop</title>
		<link>http://www.webdevelopment2.com/cakephp-contact-form-quick-dirty/comment-page-1/#comment-27830</link>
		<dc:creator>Anoop</dc:creator>
		<pubDate>Thu, 22 Jan 2009 04:18:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevelopment2.com/?p=343#comment-27830</guid>
		<description>Hi , 

    I was trying to figure it out to how to save a form data to two tables .. like username and password to one and the other details to another one .... is there something in cake to do that</description>
		<content:encoded><![CDATA[<p>Hi , </p>
<p>    I was trying to figure it out to how to save a form data to two tables .. like username and password to one and the other details to another one &#8230;. is there something in cake to do that</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.webdevelopment2.com/cakephp-contact-form-quick-dirty/comment-page-1/#comment-27824</link>
		<dc:creator>John</dc:creator>
		<pubDate>Sat, 03 Jan 2009 15:35:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevelopment2.com/?p=343#comment-27824</guid>
		<description>Hi Kevin

I know what you mean about CAPTCHAs - lots of them I can&#039;t get right first time and I&#039;ve got good eyesite - accessibility aside they just add an extra (unnecessary) element to the page.

I find that hidden form fields work really well against automated spam - i.e. if the a field that shouldn&#039;t be completed (because it&#039;s normally hidden) gets completed the message can just be dumped or sent to an alternate email just for spam. When you add things like lists of banned words to test against and a check based on the number of links in a message and you can soon build something pretty comprehensive.

As somebody who uses wordpress I have to agree with you about Askimet - its is brilliant, have not tried to hook it up to Cake yet - although I do plan to.

John

&lt;abbr&gt;&lt;em&gt;John’s last blog post..&lt;a href=&quot;http://www.flipflops.org/2008/12/18/css-note-to-self-cursor-equivalent/&quot; rel=&quot;nofollow&quot;&gt;CSS - note to self cursor: and nobr equivalent&lt;/a&gt;&lt;/abbr&gt;&lt;/em&gt;</description>
		<content:encoded><![CDATA[<p>Hi Kevin</p>
<p>I know what you mean about CAPTCHAs &#8211; lots of them I can&#8217;t get right first time and I&#8217;ve got good eyesite &#8211; accessibility aside they just add an extra (unnecessary) element to the page.</p>
<p>I find that hidden form fields work really well against automated spam &#8211; i.e. if the a field that shouldn&#8217;t be completed (because it&#8217;s normally hidden) gets completed the message can just be dumped or sent to an alternate email just for spam. When you add things like lists of banned words to test against and a check based on the number of links in a message and you can soon build something pretty comprehensive.</p>
<p>As somebody who uses wordpress I have to agree with you about Askimet &#8211; its is brilliant, have not tried to hook it up to Cake yet &#8211; although I do plan to.</p>
<p>John</p>
<p><abbr><em>John’s last blog post..<a href="http://www.flipflops.org/2008/12/18/css-note-to-self-cursor-equivalent/" rel="nofollow">CSS &#8211; note to self cursor: and nobr equivalent</a></em></abbr></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Lloyd</title>
		<link>http://www.webdevelopment2.com/cakephp-contact-form-quick-dirty/comment-page-1/#comment-27823</link>
		<dc:creator>Kevin Lloyd</dc:creator>
		<pubDate>Sat, 03 Jan 2009 01:48:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevelopment2.com/?p=343#comment-27823</guid>
		<description>From what I can see, he uses the var $_schema member variable, where as I override the schema() function. No real diff, since one of the things the function does is return _schema.

Also, he uses $this-&gt;RequestHandler-&gt;isPost() to check for a POST to the server (a lil&#039; added security. It will prevent the more primitive methods of spam).

Last thing:
Snook uses: $this-&gt;Contact-&gt;set($this-&gt;data);
as apposed to $this-&gt;Contact-&gt;create($this-&gt;data);

I used the create() because that&#039;s what I&#039;ve been using for regular data related functions in controllers. Create calls set() so, everything still gets done.

For spam though, I think you&#039;re going to need something more robust. There are some implimentations of Akismet out there. so you may want to check these out. Off the top of my head, I don&#039;t think it would be terribly hard to implement one of those &quot;math-type&quot; spam protections. I personally, hate CAPTCHA, so I don&#039;t subject my visitors to that.</description>
		<content:encoded><![CDATA[<p>From what I can see, he uses the var $_schema member variable, where as I override the schema() function. No real diff, since one of the things the function does is return _schema.</p>
<p>Also, he uses $this-&gt;RequestHandler-&gt;isPost() to check for a POST to the server (a lil&#8217; added security. It will prevent the more primitive methods of spam).</p>
<p>Last thing:<br />
Snook uses: $this-&gt;Contact-&gt;set($this-&gt;data);<br />
as apposed to $this-&gt;Contact-&gt;create($this-&gt;data);</p>
<p>I used the create() because that&#8217;s what I&#8217;ve been using for regular data related functions in controllers. Create calls set() so, everything still gets done.</p>
<p>For spam though, I think you&#8217;re going to need something more robust. There are some implimentations of Akismet out there. so you may want to check these out. Off the top of my head, I don&#8217;t think it would be terribly hard to implement one of those &#8220;math-type&#8221; spam protections. I personally, hate CAPTCHA, so I don&#8217;t subject my visitors to that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.webdevelopment2.com/cakephp-contact-form-quick-dirty/comment-page-1/#comment-27821</link>
		<dc:creator>John</dc:creator>
		<pubDate>Fri, 02 Jan 2009 23:03:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevelopment2.com/?p=343#comment-27821</guid>
		<description>Hi - thanks for posting this up. It&#039;s interesting to see the differences between yours and Snook&#039;s examples.

I was wondering how secure this was (thinking spam) - and for anybody else who is wondering - I just checked the email component in the API http://api.cakephp.org/email_8php-source.html and there everything is sent through a handy function called __strip() that removes unwanted things like bcc: and to: from the subject and message of the emails sent.

Cheers.

&lt;abbr&gt;&lt;em&gt;John’s last blog post..&lt;a href=&quot;http://www.flipflops.org/2008/12/18/css-note-to-self-cursor-equivalent/&quot; rel=&quot;nofollow&quot;&gt;CSS - note to self cursor: and nobr equivalent&lt;/a&gt;&lt;/abbr&gt;&lt;/em&gt;</description>
		<content:encoded><![CDATA[<p>Hi &#8211; thanks for posting this up. It&#8217;s interesting to see the differences between yours and Snook&#8217;s examples.</p>
<p>I was wondering how secure this was (thinking spam) &#8211; and for anybody else who is wondering &#8211; I just checked the email component in the API <a href="http://api.cakephp.org/email_8php-source.html" rel="nofollow">http://api.cakephp.org/email_8php-source.html</a> and there everything is sent through a handy function called __strip() that removes unwanted things like bcc: and to: from the subject and message of the emails sent.</p>
<p>Cheers.</p>
<p><abbr><em>John’s last blog post..<a href="http://www.flipflops.org/2008/12/18/css-note-to-self-cursor-equivalent/" rel="nofollow">CSS &#8211; note to self cursor: and nobr equivalent</a></em></abbr></p>
]]></content:encoded>
	</item>
</channel>
</rss>
