Search.../

resolveActualFromAddress( )

Developer Preview

Checks if the sender's email address will be used as from-address or replaced (not related to current sender details).

Description

This function is not a universal function and runs only on the backend.

Admin Method

This function requires elevated permissions to run. This function is not universal and runs only on the backend.

Syntax

function resolveActualFromAddress(fromAddress: string): Promise<ResolveActualFromAddressResponse>

resolveActualFromAddress Parameters

NAME
TYPE
DESCRIPTION
fromAddress
string

User's provided address from which to send email marketing campaign.

Returns

Return Type:

Promise<
ResolveActualFromAddressResponse
>
NAME
TYPE
DESCRIPTION
actualFromAddress
string

Actual from-address that will be used for email distribution.

Was this helpful?

Compares the sender address against a replacement address

Copy Code
1import { senderDetails } from 'wix-email-marketing.v2';
2
3export async function myResolveActualFromAddressFunction(fromAddress) {
4 try {
5 const result = await senderDetails.resolveActualFromAddress(fromAddress);
6
7 console.log('Success! From address has been resolved.')
8 return result;
9 } catch (error) {
10 console.error(error);
11 }
12}
13
14/* Promise returns:
15 * {
16 * "actualFromAddress": "myaddress@wix.com"
17 * }
18 */