initial commit. gotta go
This commit is contained in:
@@ -34,18 +34,18 @@ bun add usesend
|
||||
## Usage
|
||||
|
||||
```javascript
|
||||
import { UseSend } from "usesend";
|
||||
import { UseSend } from 'usesend';
|
||||
|
||||
const usesend = new UseSend("us_12345");
|
||||
const usesend = new UseSend('us_12345');
|
||||
|
||||
// for self-hosted installations you can pass your base URL
|
||||
// const usesend = new UseSend("us_12345", "https://app.usesend.com");
|
||||
|
||||
usesend.emails.send({
|
||||
to: "hello@acme.com",
|
||||
from: "hello@company.com",
|
||||
subject: "useSend email",
|
||||
html: "<p>useSend is the best open source product to send emails</p>",
|
||||
text: "useSend is the best open source product to send emails",
|
||||
to: 'hello@acme.com',
|
||||
from: 'hello@company.com',
|
||||
subject: 'useSend email',
|
||||
html: '<p>useSend is the best open source product to send emails</p>',
|
||||
text: 'useSend is the best open source product to send emails',
|
||||
});
|
||||
```
|
||||
|
Reference in New Issue
Block a user