Messaging via Resend: "to": "\"undisclosed-recipients\": ;" in request body
- 0
- Messaging
- Web
- Cloud
I'm using the node-appwrite@18.0.0 SDK.
await messaging.createEmail({
messageId: ID.unique(),
subject: "Subject",
content: `htmlContent`,
users: [recipientUserId],
draft: false,
html: true,
});
I can see in the console that this is received and the correct user is picked along with their default email target, but Resend always rejects this with status 422:
{
"name": "validation_error",
"message": "Invalid `to` field. The email address needs to follow the `email@example.com` or `Name <email@example.com>` format.",
"statusCode": 422
}
In the request body, the bcc field is showing the actual correct email address, whereas the "to" field is showing a weird escaped phrase:
{
"bcc": ["(this is correct)"],
"to": "\"undisclosed-recipients\": ;"
}
Recommended threads
- Added Custom Domain - API requests with ...
I've added in a custom domain to Appwrite my domain itself is on cloudflare but has Appwrite name servers added and confirmed they work, I added the CAA in clou...
- Table contents missing (attributes+rows)
Here is an image of the cloud and the attributes that should exist Some of the table do have the data but others dont. I am able to access the rows via api c...
- Bug Report: type generation for enum of ...
### 👟 Reproduction steps in the enum element value, instead of English, use another language (Khmer), in my case Khmer text. ``` export enum ProvinceType { ...