Comparing version 2.1.0 to 3.0.0
{ | ||
"name": "mailhound", | ||
"version": "2.1.0", | ||
"version": "3.0.0", | ||
"description": "Mailhound is a simple server side script for receiving form posts and emailing the form values.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -29,5 +29,13 @@ # mailhound | ||
1. `export SMTP=smtp://postmaster:pass@smtp.server.com` | ||
2. `export KEY:name@domain.com` | ||
2. `export ADMIN=name@domain.com` | ||
5. Reconnect to SSH and run the script `mailhound` | ||
### Docker | ||
Create the config file `.env` from `.env.example` with your environment variables | ||
1. Run with docker- | ||
* `docker run --env-file=<path to the config file .env> -p 8000:8000 chadfawcett/mailhound` | ||
2. Run with docker compose- | ||
* `docker-compose up` | ||
## Usage | ||
@@ -34,0 +42,0 @@ |
@@ -42,2 +42,10 @@ #!/usr/bin/env node | ||
// Make sure the email message is not empty | ||
if (!emailMessage) { | ||
res.status(400).send({ | ||
error: 'Error, email message is empty' | ||
}); | ||
return; | ||
} | ||
// Create string of _fields elements to add at end of message | ||
@@ -44,0 +52,0 @@ if (emailMessage) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11553
13
110
164