Fix email unconfirmed login flow with OTP resend and update email API field names
This commit is contained in:
@@ -143,12 +143,12 @@ serve(async (req: Request): Promise<Response> => {
|
||||
// Send via send-email-v2 (Mailketing API)
|
||||
const { error: emailError } = await supabase.functions.invoke("send-email-v2", {
|
||||
body: {
|
||||
to: profile.email,
|
||||
recipient: profile.email,
|
||||
api_token: smtpSettings.api_token,
|
||||
from_name: smtpSettings.from_name || platformSettings?.brand_name || "Access Hub",
|
||||
from_email: smtpSettings.from_email || "noreply@with.dwindi.com",
|
||||
subject: emailSubject,
|
||||
html_body: emailBody,
|
||||
content: emailBody,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user