echo mypage.htm | mutt -s "hello news" myemail@gmail.com
Hello,
bash: I would like to send an email with the content of it of HTML, so that it sends and displays an html when I open it wiht google mail. Is there any way ? I guess that mutt should be capable of sending text as html. I use nbsmtp and not sendmail. thanks |
Do want to send the html file as an attachment, like this?
Code:
mutt -s "testing" -a February-26-2008.html mygmail@gmail.com < /dev/null |
Quote:
more like Code:
cat page.htm | mutt -s "hello" emailaddressse@gmail.com |
That worked on my fc8 box
Code:
cat page.htm | mutt -s "hello" emailaddressse@gmail.com mailx-8.1.1-46.fc7 mailcap-2.1.25-1.fc8 rpm -qa |grep mutt mutt-1.5.17-2.fc8 |
Quote:
the content of the email says: Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> I did: Code:
and I have Code:
dpkg -l | grep mail Code:
dpkg -l | grep mutt Code:
dpkg -l | grep mailcap I am looking forward to reading you and best wishes Frenchn00b |
Try "-i" for "Specify a file to include into the body of a message."
|
H E L P
with I get this still in the content of the email and still no htm : Code:
Code:
mutt -i /tmp/index.htm -a /tmp/index.htm someone@gmail.com < /dev/null Code:
mutt -x -i /tmp/index.htm someone@gmail.com < /dev/null |
my .nbsmtp has:
Code:
relayhost=smtp.gmail.com |
Could maybe alternatives to nbsmtp would work better ? please could you provide any help or configuration ?
thanks Code:
~$ apt-cache search smtp | grep smtp |
I just configured esmtp and I got that
after esmtp me@gmail.com < /tmp/page.htm Code:
<meta name="keywords" content="Linux,how to,tutorial,operating system,linux,red hat,mandrake,security,linux help,installation,question,forum" /> H E L P Please |
mutt -i your.html -e "my_hdr Content-Type: text/html" -s foobar you@gmail.com < /dev/null
|
Quote:
Code:
mutt -i /tmp/page.htm -e "Content-type: text/html; charset=us-ascii" -s foobar myemail@gmail.com < /dev/null that's not so easy. I am looking forward to reading you !! thank you in advance |
You forgot the parameter (a mutt parameter) "my_hdr".
You just change the mime type in the mail header and the mail with html content gets interpreted as html. My command: mutt -i your.html -e "my_hdr Content-Type: text/html" -s foobar you@gmail.com < /dev/null You tried: mutt -i /tmp/page.htm -e "Content-type: text/html; charset=us-ascii" -s foobar myemail@gmail.com < /dev/null |
Quote:
Code:
mutt -i your.html -e "my_hdr Content-Type: text/html" -s foobar you@gmail.com < /dev/null I THANK YOU PLENTY !!!!!!!!!!!! Please find my link |
Quote:
to be cont. |
All times are GMT -5. The time now is 05:08 PM. |