Email marketing is very important for many cross-border e-commerce sellers, and there are many commonly used software. Today we will discuss the use of mailgun.

1. First, you need to create a mailgun account. If you don’t have one, you need to register such an account.

After registration, mailgun will provide you with a default subdomain that you can use to send emails.

2. Gulp creates a task:

var sendmail = require(“gulp-mailgun”); //Send mail task gulp.task(“email”, function(){gulp.src(“test.html”)//Emm path to test.pipe(sendmail ({key: “key-076 **************”, // API key of mail gun Sender: “postmaster@sandboxe70 ************** *.mailgun.org”, // Recipient of email sending account provided by mailgun: “630 *****@qq.com,ay *******@gmail.com”, // Users who receive emails, more separated by commas in the middle of each user Subject: “Mail Title” // Mail Title}));});

3. Execute the gulp email command to send emails. There is a possibility that the email will be sent to your spam box, this problem needs your attention.

The default subdomain of mailgun has a limit on the number of emails to be published. We can generate a second-level domain name in mailgun in order to increase the number of emails to be published to a certain extent. The application method for the second-level domain name is as follows:

a. You must first own a domain name before you can visit Xinwang and other websites to purchase it.

b. Create a second-level domain name in mailgun, and the second-level domain name must be associated with the domain name you just purchased.

C. Then follow the tutorial displayed on the mailgun page to go to the DNS resolution server to make some settings and add some domains.

d. You need to resolve it, and then you can use it to send emails, just like using mailgun’s default auxiliary domain name.

The above is the editor’s introduction to the use of mailgun. Users who don’t know how to use it can read the above in detail. It is not difficult for you to quickly get started with this software.