mailx ssl hotmail发邮件

经反复试验,mailx发邮件的配置如下:
set [email protected]
set smtp=smtp://smtp.office365.com:587
set [email protected]
set smtp-auth-password=XXX
set smtp-auth=login
set smtp-use-starttls=yes
set ssl-verify=ignore
set nss-config-dir=/root/.certs/

Zoho配置
set [email protected]
set smtp=smtps://smtp.zoho.com:465
set [email protected]
set smtp-auth-password=XXX
set smtp-auth=login
set ssl-verify=ignore

mailx -v(verbose) -s(title) -a(attachment) [email protected]

猜你喜欢

转载自blog.51cto.com/353244/2410649