Gets the email address used for notifications of activities on your site.
The getEmail()
function returns a Promise that resolves to the site's
email information.
The retrieved email address is the address that has been entered in the General Info section of your site's Dashboard.
function getEmail(): Promise<string>;
import { Permissions, webMethod } from "wix-web-module";
import wixSiteBackend from "wix-site-backend";
export const getEmail = webMethod(Permissions.Anyone, () => {
return wixSiteBackend.generalInfo.getEmail(); // "some@email.com"
});
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.