From afcb7fac8d9ecb6cf83d4b7a3536c64cfd55315e Mon Sep 17 00:00:00 2001 From: shindebhau Date: Mon, 9 Mar 2026 09:24:18 +0530 Subject: [PATCH] fix: readme for bulk call --- README.md | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 84651a6..cd4793a 100644 --- a/README.md +++ b/README.md @@ -69,19 +69,12 @@ import { Autosend } from "autosendjs"; const autosend = new Autosend("as_xxxxxxxxxxxx"); await autosend.emails.bulk({ - emails: [ - { - from: { email: "you@example.com" }, - to: { email: "user1@gmail.com" }, - subject: "Hello User 1", - html: "

Welcome!

", - }, - { - from: { email: "you@example.com" }, - to: { email: "user2@gmail.com" }, - subject: "Hello User 2", - html: "

Welcome!

", - }, + from: { email: "you@example.com" }, + subject: "Hello", + html: "

Welcome!

", + recipients: [ + { email: "user1@gmail.com" }, + { email: "user2@gmail.com" }, ], }); ```