Rank 2: Process
// Send test email using the specific target ID
await messaging.createEmail(
'unique()', // messageId
'Test Email, // subject
'Test', // 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