smtp

Contents

    Using only Mailx

    $ echo "This is the message body and contains the message" | mailx -v \
    > -r "someone@example.com" \
    > -s "This is the subject" \
    > -S smtp="mail.example.com:587" \
    > -S smtp-use-starttls \
    > -S smtp-auth=login \
    > -S smtp-auth-user="someone@example.com" \
    > -S smtp-auth-password="abc123" \
    > -S ssl-verify=ignore \
    > yourfriend@gmail.com
    

    Using only Msmtp

    echo 'message' | msmtp user@domain.com

    Using mailx and msmtp

    MTA

    Mailx, for CLI interface

    mail -s "subject" -a "attachment-if-any" "receiver@some-domain.com"

    Proudly Powered by Zim 0.75.2.

    Template by Etienne Gandrille, based on ZeroFiveEight and using JQuery Toc Plugin.