- 论坛徽章:
- 18
|
大家好!我想在我的Busybox上用sendmail给我的gmail邮箱发信,我看了busybox的sendmail的命令参数如下:- sendmail [OPTIONS] [RECIPIENT_EMAIL]...
- 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 [4<username_and_passwd.txt | -au<username> -ap<password>]
- -H 'exec openssl s_client -quiet -tls1 -connect smtp.gmail.com:465' <email.txt [4<username_and_passwd.txt | -au<username> -ap<password>]
- -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#
复制代码 应该如何修改命令才能成功发信呢?谢谢! |
|