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" }, ], }); ```