閱讀了很多頁面後,我嘗試了 .muttrc 中的以下幾行
set smtp_url="smtp://[email protected]:587/"
set smtp_pass="XXXXXXXX"
set from="[email protected]"
set realname="xxxxx"
但是在初始化 mutt 時出現以下錯誤
Error in /root/.muttrc, line 1: mtp_url=smtp://[email protected]:587/: unknown command
Error in /root/.muttrc, line 2: smtp_pass: unknown variable
mutt -v 輸出如下
Mutt 1.4.2.2i (2006-07-14)
Copyright (C) 1996-2002 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.
System: Linux 2.6.32-200.13.1.el5uek (x86_64) [using ncurses 5.5]
Compile options:
-DOMAIN
-DEBUG
-HOMESPOOL -USE_SETGID -USE_DOTLOCK -DL_STANDALONE
+USE_FCNTL -USE_FLOCK
+USE_POP +USE_IMAP +USE_GSS +USE_SSL +USE_SASL
+HAVE_REGCOMP -USE_GNU_REGEX
+HAVE_COLOR +HAVE_START_COLOR +HAVE_TYPEAHEAD +HAVE_BKGDSET
+HAVE_CURS_SET +HAVE_META +HAVE_RESIZETERM
+HAVE_PGP -BUFFY_SIZE -EXACT_ADDRESS -SUN_ATTACHMENT
+ENABLE_NLS -LOCALES_HACK +HAVE_WC_FUNCS +HAVE_LANGINFO_CODESET +HAVE_LANGINFO_YESEXPR
+HAVE_ICONV -ICONV_NONTRANS +HAVE_GETSID +HAVE_GETADDRINFO
-ISPELL
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="/var/mail"
PKGDATADIR="/usr/share/mutt"
SYSCONFDIR="/etc"
EXECSHELL="/bin/sh"
-MIXMASTER
To contact the developers, please mail to <[email protected]>.
To report a bug, please use the flea(1) utility.
我只需要使用 google smtp 伺服器發送郵件。是否有任何其他簡單的用戶端可用,可以在 bash 腳本中使用來發送帶有附件的郵件。
謝謝。