bikkuri 发表于 2014-01-04 20:51

请问用sendmail如何给gmail发信?

大家好!我想在我的Busybox上用sendmail给我的gmail邮箱发信,我看了busybox的sendmail的命令参数如下:sendmail ...
Read email from stdin and send it
Standard options:
-t Read additional recipients from message body
-f sender Sender (required)
-o options Various options. -oi implied, others are ignored
Busybox specific options:
-w seconds Network timeout
-H 'PROG ARGS' Run connection helper
Examples:
-H 'exec openssl s_client -quiet -tls1 -starttls smtp-connect smtp.gmail.com:25' <email.txt
-H 'exec openssl s_client -quiet -tls1 -connect smtp.gmail.com:465' <email.txt
-S server[:port] Server
-au<username> Username for AUTH LOGIN
-ap<password> Password for AUTH LOGIN
-am<method> Authentication method. Ignored. LOGIN is implied
Other options are silently ignored; -oi -t is implied Use makemime applet to create message with attachments我试了一下,却报Segmentation fault,请问这是怎么回事呢?root@jinx:/tmp# sendmail -S smtp.gmail.com:25 -f user2000@gmail.com -au user2000 -ap pass2000 -t test user2000@gmail.com
220 mx.google.com ESMTP zc6sm102053747pab.0 - gsmtp
250 2.0.0 OK zc6sm102053747pab.0 - gsmtp
Segmentation fault
root@jinx:/tmp#应该如何修改命令才能成功发信呢?谢谢!
页: [1]
查看完整版本: 请问用sendmail如何给gmail发信?