- Issue created by @diamondsea
- πΊπΈUnited States diamondsea
diamondsea β changed the visibility of the branch 3503229-send-email-via to hidden.
Need to send email via the Drupal SMTP configuration from the drush command line
There is currently no way to send email from the command line Drush tool that uses the SMTP settings configured in Drupal.
Add a Drush command smtp:send-mail (aliases: email, smtp-send).
Syntax:
$ drush help email
Sends an email via the SMTP module.
Arguments:
recipient The recipient email address.
subject The subject of the email.
[body] The body of the email. If not provided, it will read from STDIN.
Options:
--no-newlines If provided, disables automatic conversion of '\n' to actual newlines.
Examples:
# send as single command with body text
drush email recipient@example.com "My Subject" "This is the\nEmail Body\nIt Worked!"
# send the output of a stream (STDIN)
cat /etc/group | drush email recipient@example.com "My Subject"
none
none
none
none
Active
1.0
Code
diamondsea β changed the visibility of the branch 3503229-send-email-via to hidden.