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.
This function requires elevated permissions and runs only on the backend and on dashboard pages.
function verifyEmail(verificationCode: string): Promise<void>;
Verification code.
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 */
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.