Fix ForwardEmail authentication

This commit is contained in:
gpt-engineer-app[bot]
2025-09-30 21:16:11 +00:00
parent ed9357d299
commit db792c7011

View File

@@ -165,7 +165,7 @@ serve(async (req) => {
const emailResponse = await fetch('https://api.forwardemail.net/v1/emails', { const emailResponse = await fetch('https://api.forwardemail.net/v1/emails', {
method: 'POST', method: 'POST',
headers: { headers: {
'Authorization': `Bearer ${forwardEmailApiKey}`, 'Authorization': 'Basic ' + btoa(forwardEmailApiKey + ':'),
'Content-Type': 'application/json', 'Content-Type': 'application/json',
}, },
body: JSON.stringify({ body: JSON.stringify({