Make README SMTP-provider agnostic
- Remove Brevo-specific branding - Add SMTP provider comparison table - Use environment variables in code examples Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
37
README.md
37
README.md
@@ -1,6 +1,6 @@
|
||||
# Mail-Service mit Brevo SMTP
|
||||
# Mail-Service
|
||||
|
||||
Ein Node.js-basierter Mail-Service mit Weboberfläche zum Versenden von E-Mails über Brevo (ehemals Sendinblue) SMTP. Inklusive persistenter Versand-Historie und eingebettetem Bild-Footer.
|
||||
Ein Node.js-basierter Mail-Service mit Weboberfläche zum Versenden von E-Mails über SMTP. Funktioniert mit jedem SMTP-Anbieter (Brevo, Mailgun, Resend, SendGrid, eigener Mailserver, etc.). Inklusive persistenter Versand-Historie und eingebettetem Bild-Footer.
|
||||
|
||||
## Features
|
||||
|
||||
@@ -9,7 +9,7 @@ Ein Node.js-basierter Mail-Service mit Weboberfläche zum Versenden von E-Mails
|
||||
- **Persistente Historie** in SQLite-Datenbank
|
||||
- **Eingebettete Bilder** via CID-Attachment (werden ohne "Bilder anzeigen" dargestellt)
|
||||
- **REST-API** für programmatischen Zugriff
|
||||
- **Brevo SMTP** mit DKIM/SPF/DMARC-Unterstützung
|
||||
- **Flexibler SMTP-Versand** - Kompatibel mit allen SMTP-Anbietern
|
||||
|
||||
## Screenshot
|
||||
|
||||
@@ -60,25 +60,28 @@ cp .env.example .env
|
||||
PORT=3000
|
||||
|
||||
# Email Configuration
|
||||
MAIL_PROVIDER=smtp
|
||||
MAIL_FROM_EMAIL=noreply@example.com
|
||||
MAIL_FROM_NAME=Secure Portal
|
||||
MAIL_FROM_NAME=Mein Service
|
||||
MAIL_FOOTER_NAME=Dein Name
|
||||
|
||||
# SMTP (Brevo)
|
||||
SMTP_HOST=smtp-relay.brevo.com
|
||||
# SMTP
|
||||
SMTP_HOST=smtp.example.com
|
||||
SMTP_PORT=587
|
||||
SMTP_USER=deine-email@example.com
|
||||
SMTP_PASSWORD=dein-brevo-smtp-key
|
||||
SMTP_USER=dein-username
|
||||
SMTP_PASSWORD=dein-passwort
|
||||
SMTP_SECURE=false
|
||||
```
|
||||
|
||||
### Brevo SMTP-Key erstellen
|
||||
### SMTP-Anbieter Beispiele
|
||||
|
||||
1. Bei [Brevo](https://www.brevo.com) einloggen
|
||||
2. Gehe zu: Einstellungen → SMTP & API → SMTP
|
||||
3. "SMTP-Schlüssel generieren" klicken
|
||||
4. Schlüssel in `.env` als `SMTP_PASSWORD` eintragen
|
||||
| Anbieter | SMTP_HOST | SMTP_PORT | SMTP_SECURE |
|
||||
|----------|-----------|-----------|-------------|
|
||||
| Brevo | smtp-relay.brevo.com | 587 | false |
|
||||
| Mailgun | smtp.mailgun.org | 587 | false |
|
||||
| Resend | smtp.resend.com | 465 | true |
|
||||
| SendGrid | smtp.sendgrid.net | 587 | false |
|
||||
| Gmail | smtp.gmail.com | 587 | false |
|
||||
| Eigener Server | mail.domain.de | 465 | true |
|
||||
|
||||
## Starten
|
||||
|
||||
@@ -261,9 +264,9 @@ const nodemailer = require('nodemailer');
|
||||
const path = require('path');
|
||||
|
||||
const transporter = nodemailer.createTransport({
|
||||
host: 'smtp-relay.brevo.com',
|
||||
port: 587,
|
||||
secure: false,
|
||||
host: process.env.SMTP_HOST,
|
||||
port: parseInt(process.env.SMTP_PORT),
|
||||
secure: process.env.SMTP_SECURE === 'true',
|
||||
auth: {
|
||||
user: process.env.SMTP_USER,
|
||||
pass: process.env.SMTP_PASSWORD
|
||||
|
||||
Reference in New Issue
Block a user