命令行怎么发邮件
- realrealjerry
- 帖子: 877
- 注册时间: 2010-04-26 11:29
- 来自: 北落师门
Re: 命令行怎么发邮件
mutt
- tracyone
- 帖子: 866
- 注册时间: 2010-11-19 14:25
- 系统: 乌班图
- 来自: onetracy.com
- 联系:
Re: 命令行怎么发邮件
能否使用命令行发邮件得看你使用什么邮件客户端,该邮件客户端是否支持命令行参数的输入。
比如说大名鼎鼎的thunderbird就可以轻松做到:
参考
http://linux.chinaunix.net/techdoc/syst ... 4329.shtml
比如说大名鼎鼎的thunderbird就可以轻松做到:
参考
http://linux.chinaunix.net/techdoc/syst ... 4329.shtml
- youzhiyili
- 帖子: 2422
- 注册时间: 2012-03-22 20:42
- 系统: ubuntu22.04
Re: 命令行怎么发邮件
之前的笔记,不知道有没有过时
ubuntu安装邮件管理mutt+msmtp
ubuntu安装邮件管理mutt+msmtp
代码: 全选
sudo apt-get install mutt msmtp
----------------------------- 网易配置[~/.msmtprc] -----------------------------
tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
logfile ~/.msmtp.log
account default
host smtp.163.com
from 网易帐号@163.com
auth plain
user 网易帐号
password 网易密码
----------------------------- 网易配置[~/.muttrc] -----------------------------
set sendmail="/usr/bin/msmtp"
set use_from=yes
set envelope_from=yes
set from=网易帐号@163.com
set realname=网易昵称
set pop_user=网易帐号
set pop_pass=网易密码
set pop_host=pop.163.com
----------------------------- 多账户配置[~/.msmtprc] -----------------------------
###通用配置###
defaults
tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
logfile ~/.msmtp.log
############
###网易邮箱###
account 网易
host smtp.163.com
from 网易帐号@163.com
auth plain
user 网易帐号
password 网易密码
############
##网易邮箱2##
account 网易2 : 网易
host smtp.163.com
from 网易帐号[email protected]
auth plain
user 网易帐号2
password 网易2密码
############
###腾狗邮箱###
account 腾狗
host smtp.qq.com
from 腾狗帐号@qq.com
tls off
auth login
user 腾狗帐号
password 腾狗密码
############
###默认邮箱###
account default : 网易
############
----------------------------- 多账户配置[~/.muttrc] -----------------------------
###通用配置###
set sendmail="/usr/bin/msmtp"
set use_from=yes
############
###网易邮箱###
macro generic "<esc>1" ":set from=网易帐号@163.com"
set realname=网易昵称
set pop_user=网易帐号
set pop_pass=网易密码
set pop_host=pop.163.com
############
##网易邮箱2##
macro generic "<esc>2" ":set from=网易帐号[email protected]"
set realname=网易2昵称
set pop_user=网易帐号2
set pop_pass=网易2密码
set pop_host=pop.163.com
############
###腾狗邮箱###
macro generic "<esc>3" ":set from=腾狗帐号@qq.com"
set realname=腾狗昵称
set pop_user=腾狗帐号
set pop_pass=腾狗密码
set pop_host=pop.qq.com
############
@自由建客 @qy117121 @枫叶饭团 @cikekid @YeLee @jtshs256 @eexpress @ljj_jjl2008 @zhw2101024 @TeliuTe @月下叹逍遥 @leeaman @懒蜗牛Gentoo @灰色小狼 @photor @adagio @JiangHui @phoenixlzx @oneleaf
-
- 帖子: 68
- 注册时间: 2010-05-18 10:06
Re: 命令行怎么发邮件
我安装了mailutils,想用mail发外部邮件,那该怎么做呢。是不是还要设置sendmail服务呢,谢谢楼上各位。
- ak2008
- 帖子: 262
- 注册时间: 2009-03-06 10:52
- 系统: ubuntu-12.04
Re: 命令行怎么发邮件
mark!!不错! 

-
- 帖子: 68
- 注册时间: 2010-05-18 10:06
Re: 命令行怎么发邮件
恭请坛子里的大神再出来走两步!!!
-
- 论坛版主
- 帖子: 18279
- 注册时间: 2009-08-04 16:33
Re: 命令行怎么发邮件
參閱我安装了mailutils,想用mail发外部邮件,那该怎么做呢
https://help.ubuntu.com/community/Postf ... ll_Postfix
http://ubuntuforums.org/showthread.php?t=2127379
http://mailutils.org/manual/mailutils.html
-
- 帖子: 68
- 注册时间: 2010-05-18 10:06
Re: 命令行怎么发邮件
thanks for above links,let me see.
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙