mailcub 2.0.11 → 2.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#Mailcub — Node.js SDK to send transactional emails and newsletters from your own domain using the MailCub email API.
|
|
1
|
+
# Mailcub — Node.js SDK to send transactional emails and newsletters from your own domain using the MailCub email API.
|
|
2
2
|
|
|
3
3
|
**Mailcub** is a lightweight Node.js package for sending HTML or plain‑text emails and attachments from your own domain via the MailCub email API. It’s built for transactional emails, app notifications, and simple newsletters without managing SMTP servers yourself.
|
|
4
4
|
|
|
@@ -46,7 +46,7 @@ Sends an email. Returns a Promise.
|
|
|
46
46
|
| Parameter | Type | Description |
|
|
47
47
|
|-----------|------|-------------|
|
|
48
48
|
| `body` | Object | Email payload (see below). |
|
|
49
|
-
| `key` | String | Secret key for authentication. From [
|
|
49
|
+
| `key` | String | Secret key for authentication. From [mailcub.com](https://mailcub.com). |
|
|
50
50
|
|
|
51
51
|
### `body` object
|
|
52
52
|
|
|
@@ -149,7 +149,7 @@ async function sendWelcomeEmail(to) {
|
|
|
149
149
|
## Troubleshooting & FAQ
|
|
150
150
|
|
|
151
151
|
**Where do I get the secret key?**
|
|
152
|
-
Sign up and get your key at [
|
|
152
|
+
Sign up and get your key at [mailcub.com](https://mailcub.com).
|
|
153
153
|
|
|
154
154
|
**"Error sending email" or failed requests**
|
|
155
155
|
- Ensure `email_from` uses a domain you’ve registered in Mailcub.
|
package/package.json
CHANGED