Working Solution:
I installed those stuffs:
Code:
dpkg -l | grep msm
ii msmtp 1.4.15-1 light SMTP client with support for server pr
and mutt
Code:
$ dpkg -l | grep mail
ii iceape-mailnews 1.0.13~pre080614i-0etch1 Iceape Mail & Newsgroups and Address Book
ii kmail 4:3.5.9-5 KDE Email client
ii kmailcvt 4:3.5.9-5 KDE KMail mail folder converter
ii libksieve0 4:3.5.9-5 KDE mail/news message filtering library
ii libktnef1 4:3.5.9-5 Library for handling KTNEF email attachments
ii libmailtools-perl 2.03-1 Manipulate email in perl programs
ii libmailutils1 1:1.2+dfsg1-4 GNU Mail abstraction library
rc mailutils 1:1.2+dfsg1-4 GNU mailutils utilities for handling mail
ii metamail 2.7-54 implementation of MIME
ii mime-support 3.44-1 MIME files 'mime.types' & 'mailcap', and sup
ii mutt 1.5.18-6 text-based mailreader supporting MIME, GPG,
ii procmail 3.22-16 Versatile e-mail processor
rc sendmail-base 8.14.3-5 powerful, efficient, and scalable Mail Trans
rc sendmail-bin 8.14.3-5 powerful, efficient, and scalable Mail Trans
ii sendmail-cf 8.14.3-5 powerful, efficient, and scalable Mail Trans
then the file of .muttrc:
Code:
# Boring details
set realname = "frenchn00b"
set from = "frenchn00b.frenchn00b@gmail.com"
set use_from = yes
set envelope_from ="yes"
# Use a signature
#set signature="~/.signature"
# Use msmtp rather than sendmail. Check that
# the path is correct for your system:
set sendmail="/usr/bin/msmtp"
# If not set in ~/.bashrc:
set spoolfile = /var/spool/mail/frenchn00b
$ cat .msmtprc
Code:
#Gmail account
account gmail
host smtp.gmail.com
from frenchn00b.frenchn00b@gmail.com
auth on
tls on
tls_certcheck off
user frenchn00b.frenchn00b@gmail.com
password THEPASSWORDINCLEAR
port 587
then do this:
Code:
mutt -e 'set content_type="text/html"' frenchn00b.frenchn00b@gmail.com -s "subject hello" < page.htm
and it should work!
[SOLVED]