<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Accept Incoming Emails into a Heroku App Using SendGrid</title>
	<atom:link href="http://nanceskitchen.com/2010/02/21/accept-incoming-emails-into-a-heroku-app-using-sendgrid/feed/" rel="self" type="application/rss+xml" />
	<link>http://nanceskitchen.com/2010/02/21/accept-incoming-emails-into-a-heroku-app-using-sendgrid/</link>
	<description>Adventures in Startups, Ruby on Rails, and Ecommerce</description>
	<lastBuildDate>Thu, 03 May 2012 21:38:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Accept Incoming Emails into a Heroku App Using SendGrid &#124; Nances Kitchen &#124; jon&#039;s blog.</title>
		<link>http://nanceskitchen.com/2010/02/21/accept-incoming-emails-into-a-heroku-app-using-sendgrid/#comment-128</link>
		<dc:creator><![CDATA[Accept Incoming Emails into a Heroku App Using SendGrid &#124; Nances Kitchen &#124; jon&#039;s blog.]]></dc:creator>
		<pubDate>Thu, 03 May 2012 21:38:25 +0000</pubDate>
		<guid isPermaLink="false">http://nanceskitchen.com/?p=10#comment-128</guid>
		<description><![CDATA[[...] Accept Incoming Emails into a Heroku App Using SendGrid &#124; Nances Kitchen.   This entry was posted in dev by jon. Bookmark the permalink.      /* [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Accept Incoming Emails into a Heroku App Using SendGrid | Nances Kitchen.   This entry was posted in dev by jon. Bookmark the permalink.      /* [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sai</title>
		<link>http://nanceskitchen.com/2010/02/21/accept-incoming-emails-into-a-heroku-app-using-sendgrid/#comment-125</link>
		<dc:creator><![CDATA[Sai]]></dc:creator>
		<pubDate>Tue, 20 Mar 2012 04:57:55 +0000</pubDate>
		<guid isPermaLink="false">http://nanceskitchen.com/?p=10#comment-125</guid>
		<description><![CDATA[Hi Doug,

I got the working functionality regarding the Sendgrid. Can you please suggest me that how you are handling the &quot;attachments&quot;  ie., how you are saving them when a message has more than one attachment

Regards
Sai]]></description>
		<content:encoded><![CDATA[<p>Hi Doug,</p>
<p>I got the working functionality regarding the Sendgrid. Can you please suggest me that how you are handling the &#8220;attachments&#8221;  ie., how you are saving them when a message has more than one attachment</p>
<p>Regards<br />
Sai</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sai</title>
		<link>http://nanceskitchen.com/2010/02/21/accept-incoming-emails-into-a-heroku-app-using-sendgrid/#comment-124</link>
		<dc:creator><![CDATA[Sai]]></dc:creator>
		<pubDate>Fri, 16 Mar 2012 12:48:49 +0000</pubDate>
		<guid isPermaLink="false">http://nanceskitchen.com/?p=10#comment-124</guid>
		<description><![CDATA[Hi Doug.,

I have gone through your controller code. After saving the inbound email  to the database, what the method &quot;process _incoming_email &quot;   will do 

I  have stucked up at the sendgrid URL , I am testing the code with the help of GUI but when I remove the GUI and save it as URL in the developers of the Sendgrid it is getting a 4XX status error fro the Sendgrid 

I need to receive the data and to store it in the database eventually. please help me in this case.

Thanks In Advance

Regards
Sai]]></description>
		<content:encoded><![CDATA[<p>Hi Doug.,</p>
<p>I have gone through your controller code. After saving the inbound email  to the database, what the method &#8220;process _incoming_email &#8221;   will do </p>
<p>I  have stucked up at the sendgrid URL , I am testing the code with the help of GUI but when I remove the GUI and save it as URL in the developers of the Sendgrid it is getting a 4XX status error fro the Sendgrid </p>
<p>I need to receive the data and to store it in the database eventually. please help me in this case.</p>
<p>Thanks In Advance</p>
<p>Regards<br />
Sai</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://nanceskitchen.com/2010/02/21/accept-incoming-emails-into-a-heroku-app-using-sendgrid/#comment-123</link>
		<dc:creator><![CDATA[Doug]]></dc:creator>
		<pubDate>Wed, 14 Mar 2012 14:12:43 +0000</pubDate>
		<guid isPermaLink="false">http://nanceskitchen.com/?p=10#comment-123</guid>
		<description><![CDATA[Take a look at &lt;a href=&quot;http://docs.sendgrid.com/documentation/api/parse-api-2/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;sendgrid&#039;s parse api&lt;/a&gt; for how the attachments will come through .  You&#039;ll get the number of attachments, and then each will come through with the number appended to it.  See code below for how to read the first attachment, in this case I am reading a text file into a string.  

&lt;code&gt;
def receive_email
  @params = params
  #make sure request is a post
  text = params[&quot;text&quot;]
  html = params[&quot;html&quot;]
  to = params[&quot;to&quot;]
  from = params[&quot;from&quot;]
  subject = params[&quot;subject&quot;]
  attachment1 = params[&quot;attachment1&quot;]
  lead_string = attachment1.read
  #do something with these values now
end
&lt;/code&gt;]]></description>
		<content:encoded><![CDATA[<p>Take a look at <a href="http://docs.sendgrid.com/documentation/api/parse-api-2/" target="_blank" rel="nofollow">sendgrid&#8217;s parse api</a> for how the attachments will come through .  You&#8217;ll get the number of attachments, and then each will come through with the number appended to it.  See code below for how to read the first attachment, in this case I am reading a text file into a string.  </p>
<p><code><br />
def receive_email<br />
  @params = params<br />
  #make sure request is a post<br />
  text = params["text"]<br />
  html = params["html"]<br />
  to = params["to"]<br />
  from = params["from"]<br />
  subject = params["subject"]<br />
  attachment1 = params["attachment1"]<br />
  lead_string = attachment1.read<br />
  #do something with these values now<br />
end<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sai</title>
		<link>http://nanceskitchen.com/2010/02/21/accept-incoming-emails-into-a-heroku-app-using-sendgrid/#comment-122</link>
		<dc:creator><![CDATA[Sai]]></dc:creator>
		<pubDate>Wed, 14 Mar 2012 08:50:25 +0000</pubDate>
		<guid isPermaLink="false">http://nanceskitchen.com/?p=10#comment-122</guid>
		<description><![CDATA[Hi Doug,

Thanks for the reply. Here is how I managed my controller code 
######################################################
class ListenerController  &quot;new&quot; and return
end
end
end
end
######################################################
and test is my model which has to,from,subject,body as attributes and test_file maintains the attachments
Can this code be acceptable?

Regards
Sai]]></description>
		<content:encoded><![CDATA[<p>Hi Doug,</p>
<p>Thanks for the reply. Here is how I managed my controller code<br />
######################################################<br />
class ListenerController  &#8220;new&#8221; and return<br />
end<br />
end<br />
end<br />
end<br />
######################################################<br />
and test is my model which has to,from,subject,body as attributes and test_file maintains the attachments<br />
Can this code be acceptable?</p>
<p>Regards<br />
Sai</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sai</title>
		<link>http://nanceskitchen.com/2010/02/21/accept-incoming-emails-into-a-heroku-app-using-sendgrid/#comment-121</link>
		<dc:creator><![CDATA[Sai]]></dc:creator>
		<pubDate>Tue, 13 Mar 2012 12:20:34 +0000</pubDate>
		<guid isPermaLink="false">http://nanceskitchen.com/?p=10#comment-121</guid>
		<description><![CDATA[Hi Doug.,
Thanks for the reply.How did you manage the multiple attachments here. Are you storing the attachments or simply storing the no.of attachments
here is my controller code

class ListenerController
def new 
@test =Test.new(params[:test])

end

def create
@test=Test.new(params[:test])
if request.post?
if @test.save!
redirect_to :action =&gt; &quot;new&quot; and return

end
end
end
and in my model I have placed the fields to,from,body,subject and a attachment field to save attachments. but now I am trying to add the association for attachments is that necessary 
Can I have your maild ID plz

Thx,
Sai]]></description>
		<content:encoded><![CDATA[<p>Hi Doug.,<br />
Thanks for the reply.How did you manage the multiple attachments here. Are you storing the attachments or simply storing the no.of attachments<br />
here is my controller code</p>
<p>class ListenerController<br />
def new<br />
@test =Test.new(params[:test])</p>
<p>end</p>
<p>def create<br />
@test=Test.new(params[:test])<br />
if request.post?<br />
if @test.save!<br />
redirect_to :action =&gt; &#8220;new&#8221; and return</p>
<p>end<br />
end<br />
end<br />
and in my model I have placed the fields to,from,body,subject and a attachment field to save attachments. but now I am trying to add the association for attachments is that necessary<br />
Can I have your maild ID plz</p>
<p>Thx,<br />
Sai</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://nanceskitchen.com/2010/02/21/accept-incoming-emails-into-a-heroku-app-using-sendgrid/#comment-120</link>
		<dc:creator><![CDATA[Doug]]></dc:creator>
		<pubDate>Thu, 08 Mar 2012 17:35:01 +0000</pubDate>
		<guid isPermaLink="false">http://nanceskitchen.com/?p=10#comment-120</guid>
		<description><![CDATA[You bet, here&#039;s the model I am using, this should get you started:

&lt;code&gt;
  create_table &quot;inbound_emails&quot;, :force =&gt; true do &#124;t&#124;
    t.text     &quot;text&quot;
    t.text     &quot;html&quot;
    t.string   &quot;to&quot;
    t.string   &quot;from&quot;
    t.string   &quot;subject&quot;
    t.integer  &quot;attachments&quot;
    t.datetime &quot;created_at&quot;
    t.datetime &quot;updated_at&quot;
    t.integer  &quot;user_id&quot;
  end
&lt;/code&gt;]]></description>
		<content:encoded><![CDATA[<p>You bet, here&#8217;s the model I am using, this should get you started:</p>
<p><code><br />
  create_table "inbound_emails", :force =&gt; true do |t|<br />
    t.text     "text"<br />
    t.text     "html"<br />
    t.string   "to"<br />
    t.string   "from"<br />
    t.string   "subject"<br />
    t.integer  "attachments"<br />
    t.datetime "created_at"<br />
    t.datetime "updated_at"<br />
    t.integer  "user_id"<br />
  end<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sai Vardhan</title>
		<link>http://nanceskitchen.com/2010/02/21/accept-incoming-emails-into-a-heroku-app-using-sendgrid/#comment-119</link>
		<dc:creator><![CDATA[Sai Vardhan]]></dc:creator>
		<pubDate>Thu, 08 Mar 2012 03:47:03 +0000</pubDate>
		<guid isPermaLink="false">http://nanceskitchen.com/?p=10#comment-119</guid>
		<description><![CDATA[Hi., 

Nice work Man. Can You please help in this case. I too have a same requirement  regarding this Email. My application is built in rails 2.3.11 and present I am working on the Creating a controller for receiving the parse messages. 

How can I build the model regarding this controller

Thx.
Sai]]></description>
		<content:encoded><![CDATA[<p>Hi., </p>
<p>Nice work Man. Can You please help in this case. I too have a same requirement  regarding this Email. My application is built in rails 2.3.11 and present I am working on the Creating a controller for receiving the parse messages. </p>
<p>How can I build the model regarding this controller</p>
<p>Thx.<br />
Sai</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sandeep arneja</title>
		<link>http://nanceskitchen.com/2010/02/21/accept-incoming-emails-into-a-heroku-app-using-sendgrid/#comment-117</link>
		<dc:creator><![CDATA[sandeep arneja]]></dc:creator>
		<pubDate>Mon, 30 Jan 2012 17:20:57 +0000</pubDate>
		<guid isPermaLink="false">http://nanceskitchen.com/?p=10#comment-117</guid>
		<description><![CDATA[here is the send grid documentation to parse incoming email: http://docs.sendgrid.com/documentation/api/parse-api-2/]]></description>
		<content:encoded><![CDATA[<p>here is the send grid documentation to parse incoming email: <a href="http://docs.sendgrid.com/documentation/api/parse-api-2/" rel="nofollow">http://docs.sendgrid.com/documentation/api/parse-api-2/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://nanceskitchen.com/2010/02/21/accept-incoming-emails-into-a-heroku-app-using-sendgrid/#comment-116</link>
		<dc:creator><![CDATA[Doug]]></dc:creator>
		<pubDate>Mon, 12 Dec 2011 16:31:25 +0000</pubDate>
		<guid isPermaLink="false">http://nanceskitchen.com/?p=10#comment-116</guid>
		<description><![CDATA[I had it in there to clean up the format a bit when storing in the db, that&#039;s it.]]></description>
		<content:encoded><![CDATA[<p>I had it in there to clean up the format a bit when storing in the db, that&#8217;s it.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

