A webpage to send e-mail via resend api
10K+
A webpage to send e-mail via Resend API.
Build via Docker Compose, using the Python Flask framework.
Create a Resend account.
Add a domain to your Resend account.
Create an API Key of your account.
Clone this repo.
git clone https://github.com/WilliamPeterMatthew/resend-mail-webpage.git
Create an .env file
cp .env.example .env
Modify .env file
| Variable Name | Description | Example |
|---|---|---|
| RESEND_API_KEY | The API Key you obtained in Step 3 | re_1234567890aBcDeFgHiJkLmNoPqEsTuVw |
| SITE_PASSWORD | Website password to prevent others from abusing it | P@ssw0rd |
| PORT | Port used for external access | 5827 |
Run the project by executing the following command in the directory.
docker-compose up -d
You can also use a pre-built version of the image instead of building locally.
docker-compose -f docker-compose-prebuild.yml up -d
Now you can access the web page on the port you set in Step 6.
You can configure Apache or Nginx to reverse proxy to port 80.
Apache Example
<VirtualHost *:80>
ServerName example.com
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://localhost:<the port you set in Step 6>/
ProxyPassReverse / http://localhost:<the port you set in Step 6>/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Nginx Example
server {
listen 80;
server_name example.com;
location / {
proxy_pass http://localhost:<the port you set in Step 6>;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
error_log /var/log/nginx/resendmail_error.log;
access_log /var/log/nginx/resendmail_access.log;
}
Content type
Image
Digest
sha256:659b1af5a…
Size
52.4 MB
Last updated
about 1 year ago
docker pull petermatthew/resendmail-web