MailerInstallCommand class

dox mailer:install [--transport=log|smtp|resend|mailgun|postmark|cloudflare|ses]. dox add mailer runs it. It sets up mail in an app: the mail config, the provider, the MAIL_* keys of the transport, and a resources/views/emails folder when the app uses dox_view. It never overwrites a file, so it is safe to run twice.

Constructors

MailerInstallCommand({Directory? root, ProcessRunner? runner})
root is the app folder (the current folder by default). runner runs dart, tests pass a fake one.

Properties

description → String
one line for dox help
no setter
hashCode → int
The hash code for this object.
no setterinherited
name → String
the name after dox, like queue:table
no setter
root → Directory?
final
runner → ProcessRunner?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
usage → String
how to call it, like make:report <name>. Shown by dox help. The default is name.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(List<String> args) → Future<void>
run the command. args are the words after the name.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

envKeys(String transport) → Map<String, String>
the .env keys of transport
mailConfig(String transport) → String
lib/config/mail.dart for transport
mailProvider(String app) → String
lib/providers/mail_provider.dart

Constants

transports → const List<String>