- 浏览: 2486652 次
- 性别:
- 来自: 成都
文章分类
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
Mail Server Solution(3)SendGrid
1. Set Up ngrok
https://ngrok.com/
Get the file from here https://dl.ngrok.com/ngrok_2.0.19_darwin_amd64.zip
Unzip the file and copy that to working directory, add it to the path.
This Command will verify if it is working
> ngrok -help
Command to Start
> ngrok http localhost:3000
Tunnel Status online
Version 2.0.19/2.0.19
Web Interface http://127.0.0.1:4040
Forwarding http://503def19.ngrok.io -> localhost:3000
Forwarding https://503def19.ngrok.io -> localhost:3000
Connections ttl opn rt1 rt5 p50 p90
0 0 0.00 0.00 0.00 0.00
This will open a tunnel from the public URL to your localhost 3000 for testing purpose.
2. Set Up the Sample Codes
Create a Free account on app.sendgrid.com
https://github.com/sendgrid/sendgrid-parse-api-example nodeJS
https://github.com/Ziggeo/php-sendgrid-parse PHP
Go to the pages to set up the email forwarding on SendGrid
https://app.sendgrid.com/settings/parse
Add the domain name and forward URL there. I am using http://requestb.in/1gkr1qv1 for testing.
Adding the MX record to my domain name.
MX TTL - default (1 hour) - 10 mx.sendgrid.net.
Wait for 1 hour and Send the Email to my domain name.
I setup my domain name in both of these 2 places
https://portal.dynect.net/
http://www.networksolutions.com/
It works after few hours.
Here is the PHP solution(It seems too old.)
https://github.com/sendgrid/sendgrid-parse-demo
Here is the NODEJS solution
https://github.com/sendgrid/sendgrid-parse-api-example
Download the sample project NODEJS
> git clone https://github.com/sendgrid/sendgrid-parse-api-example.git
Change the configuration file
> mv .env.example .env
Change the content their to replace the username and password from SendGrid
Compile
> npm install
Start the Service
> node app.js
Verify if the application is running, should return 200
> curl -I -X POST http://localhost:3000/inbound
Use ngrok to get a public access
> ngrok http 0.0.0.0:3000
Then we will have something like
> curl -I -X POST http://f7df8a18.ngrok.io/inbound
Visit this page to watch the status
http://localhost:4040/inspect/http
You can check the activity on SendGrid
https://app.sendgrid.com/email_activity?
3. Understand the Sample NODEJS Codes
dotenv
https://github.com/motdotla/dotenv
HAPI - similar to ExpressJS
http://hapijs.com/
There is nothing special there, from my understanding, we just directly get the request payload and we get the attachments and attachment1, attachment2, attachment3 ...
References:
Mail Server Solution 1 & 2
http://sillycat.iteye.com/blog/2228923
http://sillycat.iteye.com/blog/2229222
Some Demos and Documents
https://sendgrid.com/
https://sendgrid.com/docs/API_Reference/Webhooks/parse.html
https://sendgrid.com/blog/sendgrids-parse-api-parsing-incoming-email-is-now-faster-and-easier/
https://sendgrid.com/blog/test-webhooks-ngrok/ test sendgrid with ngrok
https://github.com/sendgrid/sendgrid-parse-api-example
https://github.com/sendgrid/sendgrid-parse-demo
https://github.com/phpmasterdotcom/HandleEmailWithSendGrid
https://github.com/theycallmeswift/playlist.sendgriddemos.com
1. Set Up ngrok
https://ngrok.com/
Get the file from here https://dl.ngrok.com/ngrok_2.0.19_darwin_amd64.zip
Unzip the file and copy that to working directory, add it to the path.
This Command will verify if it is working
> ngrok -help
Command to Start
> ngrok http localhost:3000
Tunnel Status online
Version 2.0.19/2.0.19
Web Interface http://127.0.0.1:4040
Forwarding http://503def19.ngrok.io -> localhost:3000
Forwarding https://503def19.ngrok.io -> localhost:3000
Connections ttl opn rt1 rt5 p50 p90
0 0 0.00 0.00 0.00 0.00
This will open a tunnel from the public URL to your localhost 3000 for testing purpose.
2. Set Up the Sample Codes
Create a Free account on app.sendgrid.com
https://github.com/sendgrid/sendgrid-parse-api-example nodeJS
https://github.com/Ziggeo/php-sendgrid-parse PHP
Go to the pages to set up the email forwarding on SendGrid
https://app.sendgrid.com/settings/parse
Add the domain name and forward URL there. I am using http://requestb.in/1gkr1qv1 for testing.
Adding the MX record to my domain name.
MX TTL - default (1 hour) - 10 mx.sendgrid.net.
Wait for 1 hour and Send the Email to my domain name.
I setup my domain name in both of these 2 places
https://portal.dynect.net/
http://www.networksolutions.com/
It works after few hours.
Here is the PHP solution(It seems too old.)
https://github.com/sendgrid/sendgrid-parse-demo
Here is the NODEJS solution
https://github.com/sendgrid/sendgrid-parse-api-example
Download the sample project NODEJS
> git clone https://github.com/sendgrid/sendgrid-parse-api-example.git
Change the configuration file
> mv .env.example .env
Change the content their to replace the username and password from SendGrid
Compile
> npm install
Start the Service
> node app.js
Verify if the application is running, should return 200
> curl -I -X POST http://localhost:3000/inbound
Use ngrok to get a public access
> ngrok http 0.0.0.0:3000
Then we will have something like
> curl -I -X POST http://f7df8a18.ngrok.io/inbound
Visit this page to watch the status
http://localhost:4040/inspect/http
You can check the activity on SendGrid
https://app.sendgrid.com/email_activity?
3. Understand the Sample NODEJS Codes
dotenv
https://github.com/motdotla/dotenv
HAPI - similar to ExpressJS
http://hapijs.com/
There is nothing special there, from my understanding, we just directly get the request payload and we get the attachments and attachment1, attachment2, attachment3 ...
References:
Mail Server Solution 1 & 2
http://sillycat.iteye.com/blog/2228923
http://sillycat.iteye.com/blog/2229222
Some Demos and Documents
https://sendgrid.com/
https://sendgrid.com/docs/API_Reference/Webhooks/parse.html
https://sendgrid.com/blog/sendgrids-parse-api-parsing-incoming-email-is-now-faster-and-easier/
https://sendgrid.com/blog/test-webhooks-ngrok/ test sendgrid with ngrok
https://github.com/sendgrid/sendgrid-parse-api-example
https://github.com/sendgrid/sendgrid-parse-demo
https://github.com/phpmasterdotcom/HandleEmailWithSendGrid
https://github.com/theycallmeswift/playlist.sendgriddemos.com
发表评论
-
Stop Update Here
2020-04-28 09:00 260I will stop update here, and mo ... -
NodeJS12 and Zlib
2020-04-01 07:44 430NodeJS12 and Zlib It works as ... -
Docker Swarm 2020(2)Docker Swarm and Portainer
2020-03-31 23:18 310Docker Swarm 2020(2)Docker Swar ... -
Docker Swarm 2020(1)Simply Install and Use Swarm
2020-03-31 07:58 321Docker Swarm 2020(1)Simply Inst ... -
Traefik 2020(1)Introduction and Installation
2020-03-29 13:52 291Traefik 2020(1)Introduction and ... -
Portainer 2020(4)Deploy Nginx and Others
2020-03-20 12:06 378Portainer 2020(4)Deploy Nginx a ... -
Private Registry 2020(1)No auth in registry Nginx AUTH for UI
2020-03-18 00:56 373Private Registry 2020(1)No auth ... -
Docker Compose 2020(1)Installation and Basic
2020-03-15 08:10 326Docker Compose 2020(1)Installat ... -
VPN Server 2020(2)Docker on CentOS in Ubuntu
2020-03-02 08:04 397VPN Server 2020(2)Docker on Cen ... -
Buffer in NodeJS 12 and NodeJS 8
2020-02-25 06:43 334Buffer in NodeJS 12 and NodeJS ... -
NodeJS ENV Similar to JENV and PyENV
2020-02-25 05:14 415NodeJS ENV Similar to JENV and ... -
Prometheus HA 2020(3)AlertManager Cluster
2020-02-24 01:47 359Prometheus HA 2020(3)AlertManag ... -
Serverless with NodeJS and TencentCloud 2020(5)CRON and Settings
2020-02-24 01:46 292Serverless with NodeJS and Tenc ... -
GraphQL 2019(3)Connect to MySQL
2020-02-24 01:48 207GraphQL 2019(3)Connect to MySQL ... -
GraphQL 2019(2)GraphQL and Deploy to Tencent Cloud
2020-02-24 01:48 390GraphQL 2019(2)GraphQL and Depl ... -
GraphQL 2019(1)Apollo Basic
2020-02-19 01:36 275GraphQL 2019(1)Apollo Basic Cl ... -
Serverless with NodeJS and TencentCloud 2020(4)Multiple Handlers and Running wit
2020-02-19 01:19 263Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(3)Build Tree and Traverse Tree
2020-02-19 01:19 259Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(2)Trigger SCF in SCF
2020-02-19 01:18 251Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(1)Running with Component
2020-02-19 01:17 235Serverless with NodeJS and Tenc ...
相关推荐
SendGrid发送邮件Demo,可群发。 类库方式(ASPNet Core 2.2),可跨平台。
sendgrid-python, 是 Hacktoberfest SendGrid如果你发出请求就会发出衬衫 ! :订阅电子邮件通知发布和中断更改。快速开始使用 Docker 。这个库让你可以快速方便地通过使用 ... 这个库的版本 3. X. X 为所有 SendG
Laravel开发-laravel-sendgrid-driver 用于Laravel邮件配置的SendGrid驱动程序
docs, SendGrid产品文档 ! SendGrid文档 这里站点基于 Octopress,它又基于 of,并且添加了一些 Twitter Bootstrap 。开发分支持续部署到预览站点。 视图开发站点开发分支合并到生产周( 除非我们需要提前
sendgrid-nodejs, SendGrids官方社区 Led node.js 库 这个库使你能够快速轻松地通过使用 SendGrid Web API我们希望这个库是社区驱动的,而 SendGrid led 。 我们需要你的帮助来实现这个目标。 to我们以正确的顺序来...
smtp发送插件,支持magento系统的安装,用于sendGrid邮件的发送
Laravel开发-sendgrid-newsletter 用于sendgrid新闻稿API客户端的Laravel 4包装器
关于邮件服务的库,比如SendGrid、PostMark、MailGun和Mandrill
SendGrid - SendGrid的Go库用于发送电子邮件
sendgrid烧瓶邮件 Flask和Flask-Mail应用程序示例,该应用程序通过Twilio SendGrid发送电子邮件。
django-anymail:适用于Amazon SES,Mailgun,Mailjet,Postmark,SendGrid,Sendinblue,SparkPost等的Django电子邮件后端和Webhooks
SendGrid-Mock提供以下功能: 将邮件发送到模拟的sendgrid-api(v3: POST /v3/mail/send ) 包括身份验证通过API检索发送的邮件( GET /api/mails )。 您还可以按以下方式过滤这些邮件: GET /api/mails?to=email...
sendgrid-webhook-lambda 一个将Sendgrid的webhook事件保存到DynamoDB中的处理程序 需要 SendGrid AWS:API网关,Lambda,DynamoDB SendGrid 在您的SendGrid帐户中,转到 。 然后找到事件通知。 在本节中,您将...
使用类似于 sendmail 的命令行界面使用 Sendgrid 发送电子邮件 例子 SENDGRID_USERNAME=username SENDGRID_PASSWORD=password sendgrid -s 'Some subject' -f fromemail@gmail.com toemail@gmail.com < sendgrid...
“#SendGrid_CSchar” SendGrid_CSharp
该库的3.XX版本为所有Twilio SendGrid Web API v3端点提供了全面支持,包括新的v3 / mail / send。 该库代表Twilio SendGrid新路径的开始。 我们希望该库由社区驱动,并由Twilio SendGrid领导。 我们需要您的帮助...
SendGrid API应用部署中单击上方的“部署到Azure”按钮。 您可以创建新资源或引用现有资源(资源组,网关,服务计划等)。“站点名称”和“网关”必须是唯一的URL主机名。 部署脚本将部署以下内容: 资源组(可选) ...