
// 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
- smtp data not accepted
I have a Problem with the smtp.. it says data not accepted.. i invited a user to my Project so what is that ``` _APP_SMTP_HOST=smtp.mailersend.net _APP_SMTP_PO...
- appwrite-cli error on appwrite 1.7.4
Hey folks! I got an error while using appwrite-cli on my self hosted appwrite instance, which i updated yesterday from 1.6.x to 1.7.4. As i try to login, there ...
- Sites on Self-hosted
Hello. So, I've just deployed my Appwrite self-hosted instance, and I tried the new sites feature. It seems to be building the site properly, I can even downloa...
