verifyEmail( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Verifies the sender's email using a verification code sent to the user's email address upon update.

Authentication

This function requires elevated permissions and runs only on the backend and on dashboard pages.

Permissions
Manage Email Marketing
Learn more about app permissions.
Method Declaration
Copy
function verifyEmail(verificationCode: string): Promise<void>;
Method Parameters
verificationCodestringRequired

Verification code.

JavaScript
import { senderDetails } from "wix-email-marketing.v2"; // Sample verificationCode: "Sw4e7" export async function myVerifyEmailFunction(verificationCode) { try { const result = await senderDetails.verifyEmail(verificationCode); console.log("Success! Your email address has been verified"); return result; } catch (error) { console.error(error); } } /* Promise returns void */
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?