Skip to content

Function: resolveSenderAddress()

resolveSenderAddress(config, userEmail): string

Resolve the From address for a send from the resolved config and the current OBO user.

With a user in scope: an explicit from wins, then <local>@<domain>, then (file/outbox mode only) the user’s email verbatim. With NO user the send is system mail, so it goes from resolveSystemSenderAddress. Throws when none of those yield an address.

ResolvedEmailConfig

string | undefined

string