SMTP mailer pack template
Host, port and credentials for the mail provider an app sends through.
Open in playground
Adds #smtp to the browser demo. No account.
Keys
- mail_host
- smtp.example.com
- mail_port
- 587
- mail_username
- apikey
- mail_password:secret
- (encrypted secret, masked)
- mail_from_address
- [email protected]
Example values. Rename, add or remove keys after you create the pack.
In a task
switch #smtp to the new provider before launch @mon !1
In the terminal
tsk env smtp
MAIL_HOST=smtp.example.com
MAIL_PORT=587
MAIL_USERNAME=apikey
MAIL_PASSWORD='********'
[email protected]The real tsk decrypts secrets on your machine and prints them.
Mail settings change rarely, so nobody remembers them when they do. The keys in this template match Laravel’s MAIL_* variables, so tsk env prints lines you can drop into a .env as they are.
tsk env smtp >> .env
tsk get smtp.mail_host
The password is a secret field, encrypted on your device before it syncs.