Third Part Mail Server Integration for GitHub Pages
This post provides a detailed guide on how to configure the backend mail server for GitHub Pages or other web services that only support frontend pages. It covers steps such as generating an HTML mail template, registering a domain email account and setting up an SMTP server, using EmailJS for the email backend service, utilizing Backblaze B2 OBS bucket for image storage, and finally deploying the website.
type
status
date
slug
summary
tags
category
icon
password
Here is the detailed step about how to configure the backend mail server for GitHub Pages (or other web services that only support frontend pages).
- Generate HTML Mail Template (Postcards)
After editing the contents, export as a ZIP file with the images and HTML files together.
- Domain Email Account Registration and SMTP Server Setting
- Use EmailJS for Email Backend Service
- SMTP.js only supports elasticemail as its backend SMTP mail server, no third-party SMTP server is supported.
- The limitation of the content body of EmailJS is no more than 50kb, be sure the size of the HTML file is less than the threshold.
- We can use the following website to shrink the size of the HTML file by removing the unnecessary characters (like white space, etc)
Basic Setting
REST API Documentation
Note:
- Backblaze B2 OBS Bucket for Image Storage
We need to upload the images extracted from the downloaded ZIP file to the OBS bucket and replace all of the image paths from the relative path to the HTTPS path, which can be obtained through the detailed property of the file in the OBS bucket.
- Website Deployment
Loading...