Messages · Components
EmailAccountManager
Manage IMAP/SMTP email accounts. Reusable component for adding, editing, testing, and removing email accounts. Works with any backend via callback props.Public export
typescript
import { EmailAccountManager } from '@happyvertical/smrt-messages/svelte';- Import path
@happyvertical/smrt-messages/svelte- Props
- 5
- Props described
- 5 of 5
- Bindable state
- 0
- Callback events
- 3
- Verified release
- 0.62.10
Props
NameTypeRequiredDescription
accountsEmailAccountData[]YesArray of email accounts to display and manage.readonlybooleanNoDisables editing and deletion when true; view-only mode.onsave(data: Partial<EmailAccountData>, id?: string) => Promise<void>NoCalled when user saves an account's settings.ondelete(account: EmailAccountData) => Promise<void>NoCalled when user deletes an account.ontest(account: EmailAccountData) => Promise<{ success: boolean; error?: string; }>NoCalled when user tests account credentials.Bindable state
This component has no bindable public state.
Callback events
onsave(data: Partial<EmailAccountData>, id?: string) => Promise<void>ondelete(account: EmailAccountData) => Promise<void>ontest(account: EmailAccountData) => Promise<{ success: boolean; error?: string; }>