I tried to deliver mail from Node.js and Python using the mail delivery service (SendGrid) of IBM Cloud!

background

I am planning to provide a service for general users in the case I am currently in charge of, and it is necessary to send an email to the user when registering as a user, so how to procure an email sending server It became an issue. It was said that there is no mail sending server that can be prepared by the customer, so as a result of investigating whether there is a service that can be used in IBM Cloud, it seems that the following services can be used, so whether it can actually be used or not I actually registered the service and tried to use it, so I summarized it in this article. https://cloud.ibm.com/docs/email-delivery?locale=ja

About email delivery SendGrid's IBM Cloud Email Delivery Service is a mail relay service. This service allows you to relay outbound mail services using smart hosts. Smart hosts relay SMTP traffic from SMTP servers, mail clients, or any service or program language that can handle SMTP. The service also generates metrics, tracks email lists, and tracks email activity (email bounces, clicks, drops, open, etc.). The service also provides other features such as newsletter support and authentication.

How to register

  1. Go to https://cloud.ibm.com/classic/services/emaildelivery and click the ** Order Email Delivery Service ** button screencapture-cloud-ibm-classic-services-emaildelivery-2020-07-15-16_25_22.jpg

  2. Select ** Account Type **, set ** Email Address **, ** Username **, ** Password ** and click the ** Continue ** button. ** * Username and Password are used as your SendGrid account username and password. ** ** screencapture-cloud-ibm-classic-services-emaildelivery-2020-07-16-10_31_17.jpg

  3. Once registered and displayed in the list, select ** Access Vendor Portal ** from ** Actions ** to access the SendGrid portal. 2020-08-04 14_56_27-IBM Cloud __ Email Delivery Service.jpg

  4. Confirm that you can log in with the Username and Password set in step 3. screencapture-app-sendgrid-login-2020-07-15-16_55_32.jpg

How to use

  1. Open the Setup Guide from the SendGrid portal screencapture-app-sendgrid-2020-08-04-15_04_17.jpg

  2. Select ** Start ** next to ** Integrated using our Web API or SMTP Relay ** screencapture-app-sendgrid-guide-2020-08-04-15_04_34.jpg

  3. Select ** Choose ** below ** Web API ** screencapture-app-sendgrid-guide-integrate-2020-08-04-15_04_41.jpg

  4. Select ** Choose ** next to your language screencapture-app-sendgrid-guide-integrate-langs-2020-08-04-15_04_54.jpg

  5. Enter the API key name under ** My First API Key Name ** and click the ** Create Key ** button. screencapture-app-sendgrid-guide-integrate-langs-nodejs-2020-08-04-15_05_32.jpg

  6. After that, take over the procedure displayed on the screen, implement the corresponding code, execute it, and an email will be sent screencapture-app-sendgrid-guide-integrate-langs-nodejs-2020-08-04-15_30_02.jpg

Recommended Posts

I tried to deliver mail from Node.js and Python using the mail delivery service (SendGrid) of IBM Cloud!
[IBM Cloud] I tried to access the Db2 on Cloud table from Cloud Funtions (python)
I tried to extract and illustrate the stage of the story using COTOHA
I tried to verify and analyze the acceleration of Python by Cython
I tried to notify the update of "Hamelin" using "Beautiful Soup" and "IFTTT"
[Python] I tried to judge the member image of the idol group using Keras
The wall of changing the Django service from Python 2.7 to Python 3
I tried to summarize the string operations of Python
I tried to notify the update of "Become a novelist" using "IFTTT" and "Become a novelist API"
Python practice 100 knocks I tried to visualize the decision tree of Chapter 5 using graphviz
I tried to automate the article update of Livedoor blog with Python and selenium.
I tried to compare the processing speed with dplyr of R and pandas of Python
I tried to find the entropy of the image with python
I tried using the Python library from Ruby with PyCall
[Python] I tried to visualize the follow relationship of Twitter
I tried to implement the mail sending function in Python
I want to know the features of Python and pip
[Python] I tried collecting data using the API of wikipedia
I tried changing the python script from 2.7.11 to 3.6.0 on windows10
I tried to output the access log to the server using Node.js
I tried to get the number of days of the month holidays (Saturdays, Sundays, and holidays) with python
Implementation of recommendation system ~ I tried to find the similarity from the outline of the movie using TF-IDF ~
I tried to automate the construction of a hands-on environment using IBM Cloud's SoftLayer API
I tried to make a regular expression of "amount" using Python
How to get followers and followers from python using the Mastodon API
[Introduction to Python] I compared the naming conventions of C # and Python.
I tried to make a regular expression of "time" using Python
I tried to make a regular expression of "date" using Python
I became horror when I tried to detect the features of anime faces using PCA and NMF.
I tried to predict the up and down of the closing price of Gurunavi's stock price using TensorFlow (progress)
From Python to using MeCab (and CaboCha)
I tried using UnityCloudBuild API from Python
I tried to transform the face image using sparse_image_warp of TensorFlow Addons
I tried to execute SQL from the local environment using Looker SDK
I tried to get the batting results of Hachinai using image processing
I tried to visualize the age group and rate distribution of Atcoder
I tried to estimate the similarity of the question intent using gensim's Doc2Vec
I tried to get the authentication code of Qiita API with Python.
(Python) I tried to analyze 1 million hands ~ I tried to estimate the number of AA ~
I tried to learn the angle from sin and cos with chainer
I tried to streamline the standard role of new employees with Python
I tried the common story of using Deep Learning to predict the Nikkei 225
Using COTOHA, I tried to follow the emotional course of Run, Melos!
I tried to create a sample to access Salesforce using Python and Bottle
I tried to analyze the New Year's card by myself using python
[Python] I tried to reproduce the emergency escape program to return from the world to return from the modified world of "The disappearance of Haruhi Suzumiya"
A super introduction to Django by Python beginners! Part 2 I tried using the convenient functions of the template
I tried to get and analyze the statistical data of the new corona with Python: Data of Johns Hopkins University
Python programming: I tried to get company information (crawling) from Yahoo Finance in the US using BeautifulSoup4
I tried to predict the deterioration of the lithium ion battery using the Qore SDK
vprof --I tried using the profiler for Python
I tried web scraping using python and selenium
I tried to make a simple mail sending application with tkinter of Python
I tried object detection using Python and OpenCV
I want to email from Gmail using Python.
I tried using the Python library "pykakasi" that can convert kanji to romaji.
Python programming: I tried to get (crawling) news articles using Selenium and BeautifulSoup4.
I tried using the Google Cloud Vision API
I tried to touch the API of ebay
I tried to correct the keystone of the image
I tried to easily visualize the tweets of JAWS DAYS 2017 with Python + ELK