// Send test email using the specific target ID await messaging.createEmail( 'unique()', // messageId 'Test Email, // subject '<p>Test<p/>', // content [], // topics (empty) [], // users (empty when using targets) [targetId], // targets (using the specific target ID) [], // cc (empty) [], // bcc (empty) [], // attachments (empty) false, // draft (false = send immediately) true // html (true for HTML content) );
When using this code to send an Email i get the following error in the appwrite console "Failed sending to target theEmailISpecified with error: Forbidden"
what is the cause of this?
My custom smtp server is setup and magic link emails are also sent out after i enter mine for loggin in, the email address also has a target
Recommended threads
- 1:1 relationship doesn’t sync after re-a...
Hi, I’m trying to use a two-way one-to-one relationship. It works fine when I create a record with the relationship set, and it also works when I unset it. But ...
- Failed to create function
Hey everyone 👋 I'm having an issue creating Functions on Appwrite Cloud and I'm not sure if it's a platform bug or something wrong in my project. When I try t...
- Upsert with setting permissions
Hi there, I am using self-hosted appwrite v1.7.4 and trying to use the bulk update stuff that was released with 1.7.x. Unfortunally I found that there is an ser...