SMTP

Send letter

swaks \
        --from [email protected] \
        --to [email protected] \
        --server send.ahasend.com \
        --port 587 \
        --auth plain \
        --tls \
        --auth-user 'YOUR_SMTP_USERNAME' \
        --auth-password 'YOUR_SMTP_PASSWORD' \
        --header 'Subject: Test email' \
        --body "<html><body><h1>This is a Heading</h1><p>This is a paragraph.</p></body></html>" \
        --add-header "Content-Type: text/html" \
        --attach @/path/to/file.txt 

Last updated