rebrand to useSend (#210)

This commit is contained in:
KM Koushik
2025-09-03 08:21:55 +10:00
committed by GitHub
parent b1a59d2705
commit 07c53d3f58
219 changed files with 1349 additions and 2835 deletions

View File

@@ -1,4 +1,4 @@
import { CodeBlock } from "@unsend/ui/src/code";
import { CodeBlock } from "@usesend/ui/src/code";
export const getSendTestEmailCode = ({
from,
@@ -17,13 +17,13 @@ export const getSendTestEmailCode = ({
{
language: "js",
title: "Node.js",
code: `import { Unsend } from "unsend";
code: `import { UseSend } from "usesend";
const unsend = new Unsend("us_12345");
const usesend = new UseSend("us_12345");
// const unsend = new Unsend("us_12345", "https://my-unsend-instance.com");
// const usesend = new UseSend("us_12345", "https://app.usesend.com");
unsend.emails.send({
usesend.emails.send({
to: "${to}",
from: "${from}",
subject: "${subject}",
@@ -37,7 +37,7 @@ unsend.emails.send({
title: "Python",
code: `import requests
url = "https://app.unsend.dev/api/v1/emails"
url = "https://app.usesend.com/api/v1/emails"
payload = {
"to": "${to}",
@@ -63,7 +63,7 @@ response = requests.request("POST", url, json=payload, headers=headers)
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.unsend.dev/api/v1/emails",
CURLOPT_URL => "https://app.usesend.com/api/v1/emails",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
@@ -97,7 +97,7 @@ if ($err) {
require 'uri'
require 'json'
url = URI("https://app.unsend.dev/api/v1/emails")
url = URI("https://app.usesend.com/api/v1/emails")
payload = {
"to" => "${to}",
@@ -126,7 +126,7 @@ puts response.body
{
language: "curl",
title: "cURL",
code: `curl -X POST https://app.unsend.dev/api/v1/emails \\
code: `curl -X POST https://app.usesend.com/api/v1/emails \\
-H "Content-Type: application/json" \\
-H "Authorization: Bearer us_12345" \\
-d '{"to": "${to}", "from": "${from}", "subject": "${subject}", "text": "${body}", "html": "${bodyHtml}"}'`,

View File

@@ -1,5 +1,5 @@
export const DELIVERY_DELAY_ERRORS = {
InternalFailure: "An internal Unsend issue caused the message to be delayed.",
InternalFailure: "An internal useSend issue caused the message to be delayed.",
General: "A generic failure occurred during the SMTP conversation.",
MailboxFull:
"The recipient's mailbox is full and is unable to receive additional messages.",
@@ -12,36 +12,36 @@ export const DELIVERY_DELAY_ERRORS = {
TransientCommunicationFailure:
"There was a temporary communication failure during the SMTP conversation with the recipient's email provider.",
BYOIPHostNameLookupUnavailable:
"Unsend was unable to look up the DNS hostname for your IP addresses. This type of delay only occurs when you use Bring Your Own IP.",
"useSend was unable to look up the DNS hostname for your IP addresses. This type of delay only occurs when you use Bring Your Own IP.",
Undetermined:
"Unsend wasn't able to determine the reason for the delivery delay.",
"useSend wasn't able to determine the reason for the delivery delay.",
SendingDeferral:
"Unsend has deemed it appropriate to internally defer the message.",
"useSend has deemed it appropriate to internally defer the message.",
};
export const BOUNCE_ERROR_MESSAGES = {
Undetermined: "Unsend was unable to determine a specific bounce reason.",
Undetermined: "useSend was unable to determine a specific bounce reason.",
Permanent: {
General:
"Unsend received a general hard bounce. If you receive this type of bounce, you should remove the recipient's email address from your mailing list.",
"useSend received a general hard bounce. If you receive this type of bounce, you should remove the recipient's email address from your mailing list.",
NoEmail:
"Unsend received a permanent hard bounce because the target email address does not exist. If you receive this type of bounce, you should remove the recipient's email address from your mailing list.",
"useSend received a permanent hard bounce because the target email address does not exist. If you receive this type of bounce, you should remove the recipient's email address from your mailing list.",
Suppressed:
"Unsend has suppressed sending to this address because it has a recent history of bouncing as an invalid address. To override the global suppression list, see Using the Unsend account-level suppression list.",
"useSend has suppressed sending to this address because it has a recent history of bouncing as an invalid address. To override the global suppression list, see Using the useSend account-level suppression list.",
OnAccountSuppressionList:
"Unsend has suppressed sending to this address because it is on the account-level suppression list. This does not count toward your bounce rate metric.",
"useSend has suppressed sending to this address because it is on the account-level suppression list. This does not count toward your bounce rate metric.",
},
Transient: {
General:
"Unsend received a general bounce. You may be able to successfully send to this recipient in the future.",
"useSend received a general bounce. You may be able to successfully send to this recipient in the future.",
MailboxFull:
"Unsend received a mailbox full bounce. You may be able to successfully send to this recipient in the future.",
"useSend received a mailbox full bounce. You may be able to successfully send to this recipient in the future.",
MessageTooLarge:
"Unsend received a message too large bounce. You may be able to successfully send to this recipient if you reduce the size of the message.",
"useSend received a message too large bounce. You may be able to successfully send to this recipient if you reduce the size of the message.",
ContentRejected:
"Unsend received a content rejected bounce. You may be able to successfully send to this recipient if you change the content of the message.",
"useSend received a content rejected bounce. You may be able to successfully send to this recipient if you change the content of the message.",
AttachmentRejected:
"Unsend received an attachment rejected bounce. You may be able to successfully send to this recipient if you remove or change the attachment.",
"useSend received an attachment rejected bounce. You may be able to successfully send to this recipient if you remove or change the attachment.",
},
};