cloudmailin

Receiving emails with sendgrid and cloudmailin

ε祈祈猫儿з 提交于 2019-12-13 07:10:38
问题 I have the same concept as mentioned in this question(generating a unique random email address for each user in rails app. When the user sends an email that that randomly generated email address, we process the body and store in db. I followed the following steps: Deployed my app in Heroku Created a sendgrid account and configured the username and password to heroku(to get the sendgrid addon). added griddler gem and followed the steps mentioned in griddler. Configured the parse webhook in

rspec/capybara: how to simulate incoming POST requests? (rack-test won't work)

落花浮王杯 提交于 2019-12-05 01:38:11
问题 I need to receive incoming emails as multipart-formdata via a POST request from Cloudmailin. The POST resembles the following: Parameters: {"to"=>"<email@exmaple.comt>", "from"=>"whomever@example", "subject"=>"my awesome subject line.... Actually, receiving and parsing emails is super easy because the email is just posted as params: params[:to], params[:from], etc. However, how do I simulate this POST request in rails? I built a dummy rails app to test out Cloudmailin, so I have an actual

rspec/capybara: how to simulate incoming POST requests? (rack-test won't work)

折月煮酒 提交于 2019-12-03 16:45:19
I need to receive incoming emails as multipart-formdata via a POST request from Cloudmailin. The POST resembles the following: Parameters: {"to"=>"<email@exmaple.comt>", "from"=>"whomever@example", "subject"=>"my awesome subject line.... Actually, receiving and parsing emails is super easy because the email is just posted as params: params[:to], params[:from], etc. However, how do I simulate this POST request in rails? I built a dummy rails app to test out Cloudmailin, so I have an actual request. However, it's a 6k character file, so I'd like to load this file as the parameters of the POST