Skip to main content

Function: updateProcessEmailDefaults()

updateProcessEmailDefaults(_prev, formData): Promise<SettingsState>

Defined in: src/server/actions/settings.ts:178

Owner-only: save one flow's area-based Reply-to + default CC/BCC into the email_process map (the Setup panel; the invoice dialog's "Save as default" reaches the same shape). Reply-to lets each area route replies to its own inbox (invoice → billing@, welcome → onboarding@, …). Addresses are validated + capped; an empty reply-to clears the override (falls back to company).

Parameters

_prev

SettingsState

formData

FormData

Returns

Promise<SettingsState>