ErrorsBuilt-in services · rule
email.connection_required
Action emits an email but the application names no email connection.
Area 16, Built-in services; not declinable; the next step is usually the agent's.
An email is sent through the connection application { email: } names,
once the action that emits it commits, so emitting one needs it:
use accounts/types { DisplayName }use accounts/emails { WelcomeEmail }/// Welcomes someone who has just signed up.action welcome(address: Email, name: DisplayName) -> Unit { emit WelcomeEmail { to: address locale: Locale.en_gb name: name }}
error WelcomeEmail is emitted, but nothing sends email
--> domains/accounts/actions/welcome.jadpo:6:5
|6 | emit WelcomeEmail { | ^^^^^^^^^^^^^^^^^^^ no email connection
- reason
- An email is sent once the action that emits it commits, through the connection
application { email: }names, from the address itsfrom:gives;app.jadponames none. - next
- Declare a connection with
driver: Driver.smtpinconnections:, and addemail: { connection: <its name> from: config.mail_sender }toapplication { }inapp.jadpo(agent) - rule
- email.
connection_ required - help
- https://jadpo.
dev/docs/errors/email. connection_ required
Markdown for agents: /docs/errors/email.connection_required.md.Built from Jadpo main at aee2e8f.