<style> .reveal { font-size: 12px; } </style> # S-nail installation and usage ## Installation `sudo apt-get install s-nail` ![](https://i.imgur.com/O5BCIDG.png) ## Usage * **Fundamentals**. By default, `s-nail` can send email to recipient on its own as "yaswin\@WangYZ'sLaptop" (but fail to send it to gmail because of its superior security). If you want to accomplish it via your own account as sender, please configure it as follows. * **How To Do**. Create a file named after '.mailrc' containing following arguemnts in one's home. --- <!----> set smtp-use-starttls set smtp="smtp://smtp.126.com:25" set from="yanz_wang@126.com (王彦周)" set smtp-auth-user="yanz_wang@126.com" set smtp-auth-password="RTKWJCSYNMUWKRGG" set smtp-auth="login" set dotlock-disable > Beware that `smtp-auth-password` here is not your email-loggin pwd, instead the automatically generated random codes when one enables IMAP/SMTP service. * **Send email**. Type command `s-nail -s "subject" -a attachemnt.pdf yanz_wang@126.com yanzhowang@gmail.com < text_email_content` * **Read email**. Just type `s-nail` command. Unfortunately, I cannot receive any emails probably because of windows subsystem Ubuntu. ---
{"metaMigratedAt":"2023-06-17T16:31:52.037Z","metaMigratedFrom":"Content","title":"S-nail installation and usage","breaks":true,"contributors":"[{\"id\":\"87f3858d-975a-464c-9b41-024e3215eb79\",\"add\":1460,\"del\":220}]"}
    365 views