LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Thread Tools
Old 04-19-2009, 03:48 PM   #16
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,025
Thanked: 4

Original Poster

[Log in to get rid of this advertisement]
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]
frenchn00b is offline     Reply With Quote
Old 04-20-2009, 02:21 AM   #17
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,025
Thanked: 4

Original Poster
Quote:
Originally Posted by frenchn00b View Post
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]
this solution does not work with crontab

I use now back the nbsmtp, and both mutt/crontab user working together in hand are workking.

nbsmtp works better than mssmtp

Nota:
this is the working and right way to send an hmtl email:
Code:
  mutt -e 'set content_type="text/html"' me@gmail.com  -s "$(date) " < page.htm
frenchn00b is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mutt question: "How can I configure mutt for not automarking as read??" xowl Linux - Software 0 09-26-2007 06:45 PM
BASH: How to NOT echo to screen with "if echo $x | grep ".*"; then" eur0dad Programming 9 07-27-2006 03:14 PM
(echo -n "standby" > /sys/power/state) only allowed for root? brynjarh Debian 5 02-14-2005 10:08 AM
What is "Error sending message, child exited 67 (User unknown.)."? using mutt jonathanztaub Linux - General 0 05-17-2004 10:04 AM
mutt says: "~/Mail/Inbox: No such file or directory (errno = 2)" realos Linux - General 1 08-01-2002 04:05 AM


All times are GMT -5. The time now is 09:23 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration