@easybits.cloud/mailmask 0.1.1 → 0.1.2

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.
Files changed (2) hide show
  1. package/README.md +13 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -15,15 +15,24 @@ import { MailMask } from "@easybits.cloud/mailmask";
15
15
 
16
16
  const mm = new MailMask({ apiKey: "mm_live_..." });
17
17
 
18
- // List domains
19
- const domains = await mm.domains.list();
20
-
21
- // Create an alias
18
+ // Create an alias — emails to hello@yourdomain.com forward to your inbox
22
19
  const alias = await mm.aliases.create({
23
20
  domainId: "domain-id",
24
21
  local: "hello",
25
22
  destinations: ["you@example.com"],
26
23
  });
24
+
25
+ // Send an email (routed through MailMask for high deliverability)
26
+ await mm.emails.send({
27
+ domainId: "domain-id",
28
+ from: "hello",
29
+ to: "client@example.com",
30
+ subject: "Welcome!",
31
+ html: "<p>Thanks for signing up.</p>",
32
+ });
33
+
34
+ // List aliases for a domain
35
+ const aliases = await mm.aliases.list("domain-id");
27
36
  ```
28
37
 
29
38
  ## Docs
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easybits.cloud/mailmask",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Official SDK for the MailMask email alias/forwarding API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",