在 Emacs 中使用邮件发信

Emacs send email

Message send email

1
2
3
4
5
6
7
8
# for centos
yum install mail mailx

# for ubuntu
apt install mailutils

# for windows
cygwin--> install mail

Meta-x customize-group RET smtp,设置 smtp server smtp port.

username and password is located in ~/.authinfo[1]

1
2
3
4
[susu@master]# cat ~/.authinfo
machine smtp.163.com login 163email@163.com password MyGeneratedCodeBy163

[susu@master]#

Note there are tab not space among them, Or you will spend all day long to consider why it doesn’t work.

Ctrl-x m invoke email editing, Ctrl-c Ctrl-c to send the email.[2][3]


  1. https://www.gnu.org/software/emacs/manual/html_mono/auth.html#index-auth_002dsources-1 ↩︎

  2. https://www.gnu.org/software/emacs/manual/html_mono/smtpmail.html ↩︎

  3. https://www.gnu.org/software/emacs/manual/html_node/smtpmail/index.html ↩︎