Last active
August 22, 2018 01:36
-
-
Save mesaglio/0341e31f1a67b822b5f28e9da5e1d734 to your computer and use it in GitHub Desktop.
Send mail from console
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To send a mail from mac´s console | |
init this config in etc/mail.rc | |
set smtp-use-starttls | |
set ssl-verify=ignore | |
set smtp-auth=login | |
set smtp=smtp://smtp.tu_proveedor_de_correo.com:587 | |
set from="[email protected]" | |
set [email protected] | |
set smtp-auth-password=tu.contraseña | |
set ssl-verify=ignore | |
then use: mail -s "asunto" [email protected] | |
and write the body of the mail, ending with "." or CTRL + D. | |
to add a file use -a FILE to the command. | |
For more opcions read: https://linux.die.net/man/1/mail |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment