Skip to content

Commit

Permalink
Remove references to createEmail function (#620)
Browse files Browse the repository at this point in the history
Co-authored-by: Lennart <lekoarts@gmail.com>
  • Loading branch information
2 people authored and alexisintech committed Mar 7, 2024
1 parent 009f5de commit 9da1c6f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
12 changes: 6 additions & 6 deletions docs/references/nodejs/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ If you are comfortable with setting the `CLERK_SECRET_KEY` environment variable
const pkg = require('@clerk/clerk-sdk-node');
const clerkClient = pkg.default;

clerkClient.emails
.createEmail({ fromEmailName, subject, body, emailAddressId })
.then((email) => console.log(email))
clerkClient.sessions
.getSessionList()
.then((sessions) => console.log(sessions))
.catch((error) => console.error(error));
```

Expand Down Expand Up @@ -160,9 +160,9 @@ const Clerk = require('@clerk/clerk-sdk-node/cjs/instance').default;

const clerkClient = Clerk({ secretKey: '{{secret}}' });

clerkClient.emails
.createEmail({ fromEmailName, subject, body, emailAddressId })
.then((email) => console.log(email))
clerkClient.sessions
.getSessionList()
.then((sessions) => console.log(sessions))
.catch((error) => console.error(error));
```
</CodeBlockTabs>
Expand Down
10 changes: 7 additions & 3 deletions docs/references/ruby/available-methods.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,18 @@ Verify the JWT and return the client.
sdk.clients.verify_token("jwt")
```

## [Emails](https://clerk.com/docs/reference/backend-api/tag/Email-and-SMS-Templates)
## Emails

<Callout type="danger">
This method is now deprecated. Clerk no longer supports sending Emails through Clerk's backend API.
</Callout>

Send an email message to an email address ID belonging to another user.

```ruby
sdk.emails.create(
email_address_id: "ema_xyz",
from_email_name: "noreply",
email_address_id: "ema_xyz",
from_email_name: "noreply",
subject: "Welcome",
body: "<html>...</html>",
)
Expand Down

0 comments on commit 9da1c6f

Please sign in to comment.