// 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
- Authentication on custom Websocket Serve...
Hi, I want to use a custom Websocket Server (using Bun) for my application. However I cant really figure out authentication on custom servers. Session cookies ...
- Realtime: Listener not triggered on upda...
I self host appwrite 1.8.1. The genereal functionallity works fine. But my realtime subscription isn't updating. I see "Received heartbeat response from realtim...
- Realtime for files() works almost well, ...
I have been trying to make use of realtime, today (14.03.26) I have pulled all the latest versions of docker images, and sdk available. Whats working: - Conn...