Search.../

getEmail( )

Gets the email address used for notifications of activities on your site.

Description

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.

Syntax

function getEmail(): Promise<string>

getEmail Parameters

This function does not take any parameters.

Returns

Fulfilled - An object containing the site email information. Rejected - Error message.

Return Type:

Promise<string>

Was this helpful?

Get the email address used for notifications of activities on your site

Copy Code
1import wixSiteBackend from 'wix-site-backend';
2
3export function getEmail() {
4 return wixSiteBackend.generalInfo.getEmail(); // "some@email.com"
5}