This is my current function below:
TypeScript
export const sendEmailNotifications = async ({
content,
sendEmailUsers,
subject,
}: {
content: string;
sendEmailUsers: string[];
subject: string;
}): Promise<void> => {
try {
await messaging.createEmail(
ID.unique(),
subject,
content,
[],
sendEmailUsers,
[],
[],
['66bd072b4824aa77bd9b', '66da0993c6adb1bd868a'],
);
} catch (error) {
throw new Error('Error Sending Email');
}
};
the sendEmailUsers is an array of userID's. it was working just fine, but when i added in the 2 empty arrays after, and then the target IDs for bcc... it sends to appwrite and just gets stuck on processing.
TL;DR
Current function is causing email to get stuck on "processing" after adding empty arrays and BCC target IDs. Solution: Check the messaging.createEmail method for any issues related to the additional parameters added.Recommended threads
- OIDC not working on Appwrite cloud
tl;dr: same project settings, same OIDC credentials. Auth works on self hosted but not in cloud. I have a project in my self hosted instance with a single web ...
- Google OAuth2 is not working
the Google OAuth2 is working perfectly in localhost, but when I bring it to production that means real domain, then when I clicked button signin nothing happene...
- Trouble Creating Database and Collection...
I’ve set up my project credentials (endpoint, project ID) and generated an API key. I’m currently focusing on creating only the database and collections (tables...