发新话题
打印

怎样在linux下发送E-mail?

怎样在linux下发送E-mail?

1、启动sendmail邮件服务并配好网络
#service sendmail start
或者
#/etc/init.d/sendmail start
2、发送邮件
#echo "test mail" | mail -s "hello" ldw21cn@126.com
test mail 为邮件内容
hello 为邮件主题
ldw21cn@126.com 为邮件地址

TOP

发新话题
版块跳转