Closed Epikur86 closed 1 year ago
This happened to me too. Since you are using a mailgun sandbox, you have to insert the api key you have received for the specific sandbox, and you have to prepend api:
.
something like this:
INSERT INTO private.keys (key, value) values ('MAILGUN_DOMAIN', 'sandbox07beb0c907ba54.mailgun.org');
INSERT INTO private.keys (key, value) values ('MAILGUN_API_KEY', 'api:xxxxxxxxxxxxxxxxxxxxxxxxxxxxx-xxxxxxxxxx');
Hello,
trying to send an email through SQL-Editor I get the error : Failed to run sql query: invalid input syntax for type json. Not sure how to solve this issue.
select send_email_message('{"sender": "mailgun@sandbox07beb0c907ba54.mailgun.org","recipient":"info@test.com","subject": "This is a test message from my Supabase app!","html_body":"test","text_body":"test"}');
_send_emailmailgun_send_emailmessage: