This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Checks if the sender's email address will be used as from-address or replaced (not related to current sender details).
This function requires elevated permissions and runs only on the backend and on dashboard pages.
function resolveActualFromAddress(
fromAddress: string,
): Promise<ResolveActualFromAddressResponse>;
User's provided address from which to send email marketing campaign.
import { senderDetails } from "wix-email-marketing.v2";
export async function myResolveActualFromAddressFunction(fromAddress) {
try {
const result = await senderDetails.resolveActualFromAddress(fromAddress);
console.log("Success! From address has been resolved.");
return result;
} catch (error) {
console.error(error);
}
}
/* Promise returns:
* {
* "actualFromAddress": "myaddress@wix.com"
* }
*/
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.