将电子邮件接收到 Heroku 托管应用程序中

发布于 2024-09-25 14:46:32 字数 402 浏览 2 评论 0原文

我有一个电子邮件设置转发到 mx.sendgrid.new (sendgrid 邮件服务器),然后将收到的电子邮件发送到指定页面(如下面教程的第二张图片所示)

http://nanceskitchen.com/2010 /02/21/accept-incoming-emails-into-a-heroku-app-using-sendgrid/#comment-37

那么将 sendgrid 电子邮件传递到控制器的索引文件中的代码是什么

?就像常规表单页面一样...?

ive got a email setup to forward to mx.sendgrid.new (the sendgrid mail server) then with received emails sendgrid passes them to a specified page (as shown in the 2nd image of the tutorial im following)

http://nanceskitchen.com/2010/02/21/accept-incoming-emails-into-a-heroku-app-using-sendgrid/#comment-37

SO what CODE is inside that index file that passes the sendgrid email into the controller

is it just like a regular form page...?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

人│生佛魔见 2024-10-02 14:46:32

没有索引文件,只是从 SendGrid 向您的应用程序发出的发布请求。您指定您希望该帖子转到的 URL,当 SendGrid 收到电子邮件时,它会将请求发布到您指定的 URL,并将电子邮件字段作为参数。

附言。 NancesKitchen.com 是我的博客。

There is no index file, just a post request to your application made from SendGrid. You specify the url you want that post to go to, and when SendGrid receives an email, it posts a request to your specified URL, with the email fields as parameters.

PS. NancesKitchen.com is my blog.

心舞飞扬 2024-10-02 14:46:32

不应涉及索引文件(如静态 HTML 或视图文件)。

Sendgrid 通过给定的 URL 向您的应用程序发出请求。从应用程序的角度来看,该请求由控制器直接处理。但 params 哈希不是由表单数据填充,而是由 Sendgrid 请求中的数据填充。

There should be no index file (as in a static HTML or view file) involved.

Sendgrid makes the request to your app on a given URL. From your app's side, this request is handled straight by the controller. But instead of the params hash being populated by form data, it's populated by the data in the request from Sendgrid.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文