Skip to content

Instantly share code, notes, and snippets.

@mesaglio
Last active August 22, 2018 01:36
Show Gist options
  • Save mesaglio/0341e31f1a67b822b5f28e9da5e1d734 to your computer and use it in GitHub Desktop.
Save mesaglio/0341e31f1a67b822b5f28e9da5e1d734 to your computer and use it in GitHub Desktop.
Send mail from console
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