Sponsored Content
Top Forums Programming How do I tell mail (or pine, or whatever) that the piped in file is html? Post 24634 by Boots on Tuesday 16th of July 2002 01:20:15 AM
Old 07-16-2002
How do I tell mail (or pine, or whatever) that the piped in file is html?

I'm writting a cron job and first it generates a HTML file, then grabs a list of email addresses and fires them to the people...
I've been testing with the command line using: mail someone@somewhere.com -s Subject < file.html

But once I look at it, it comes through as plain text not html. I've added a <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> as the first line of my html file and still no go.

Is there some kind of command line flag to specify the file's mime type?

-----------------------------------------

At this point I have some sample code that should allow me to talk straight to the SMTP daemon via sockets, and through some telnet testing it looks like I have the mail headers down for sending the file as html to multiple recipients.

Thanks in advance.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How can I write a HTML file in UNIX and sent it as a body of a mail

Hi, How can I write a HTML file in Unix. Once I do that, I want to send this file as a body of a mail, along with writing a subject for the mail I am sending through unix. How can that be done? (0 Replies)
Discussion started by: diwa81
0 Replies

2. Shell Programming and Scripting

mail: html content

hi guys, am required to prepare a report and mail it, to make it more appealing :p i wish to have content of mail in rich text format i.e html type with mailx how to specify the content type of mail body as html? Thanks in advance!!! rishi (2 Replies)
Discussion started by: RishiPahuja
2 Replies

3. UNIX for Advanced & Expert Users

Mail x to HTML

Hi, i've build a script, 1: neon_script and the other 2:neon_mailing those to scripts i run with 3:neon_handmatig After that i get a mail in plain text in my mail box and i want it in html format. I already tried already a several things but nothings seems to work. Somebody got i idea how... (3 Replies)
Discussion started by: Rensen
3 Replies

4. UNIX for Dummies Questions & Answers

How to send html file in a mail not as an attachment but it should display in the mail in table for

Hi The below script working when we are sending the html as attachment can u please guide how to send thesmae data in table form direct in the mail and not in mail attachment . cat Employee.sql SET VERIFY OFF SET PAGESIZE 200 SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON - HEAD... (0 Replies)
Discussion started by: mani_isha
0 Replies

5. Shell Programming and Scripting

How to embed a html file in a mail sending from Linux box with uuencode or mailx?

How to embed a html file as subject in a mail sending from Linux box with uuencode or mailx or any other way? we do not want the file as attachment, it should be embedded in the mail subject. (2 Replies)
Discussion started by: johnveslin
2 Replies

6. UNIX for Dummies Questions & Answers

Forwarding mail via Pine

I am asking about my work account, running Linux on a system server. On pine, I set up a forward to another email account. I also keep a copy in the original account. The forward has been running fine for some time. I believe the system sends the mail first to the forwarded account and then puts... (0 Replies)
Discussion started by: BLabel
0 Replies

7. Shell Programming and Scripting

problem with sending mail from txt file having HTML code via sendmail -t

Hi, i have the following code in shell named as test3.sh.. #!/bin/sh . /home/<user>/.profile export dt=`date "+%d%b%y"` export tim=`date "+%d%b%y %HM:%MM"` cd export WD=`pwd` SID="<sid>" export SID export ORACLE_SID=$SID export ORACLE_HOME=/oracle/$SID/102_64 export... (4 Replies)
Discussion started by: jassi10781
4 Replies

8. Shell Programming and Scripting

How to mail a html file.?

Hi, Can anyone tell me how to mail a html file in unix? I have a HTML file which contains a table structure, and i want this table to be created in the mail body and mail it. Does anyone have any suggestions. (3 Replies)
Discussion started by: rocky88
3 Replies

9. Shell Programming and Scripting

HTML mail formating in UNIX

Hi i need to send mail from my Unix server i used the below code. From: TTS.OO.Monitoring.Operations Subject: Error X-Mailer: htmlmail 1.0 Mime-Version: 1.0 Content-Type: text/html; charset=US-ASCII <HTML><head><style type='text/css'> table.altrowstable { font-family:... (6 Replies)
Discussion started by: mohanalakshmi
6 Replies

10. Shell Programming and Scripting

HTML mail with Attachment

Hi, I am using the below code: #!/bin/ksh SUBJ="Send mail from Unix with file attachments" TO=sudha.viswanathan@jpmorgan.com CC=sudha.viswanathan@jpmorgan.com ( cat << ! To : ${TO} Subject : ${SUBJ} Cc : ${CC} ! cat << ! MIME-Version: 1.0 Content-Type: text/html `cat... (1 Reply)
Discussion started by: sudvishw
1 Replies
ABOOK(1)						      General Commands Manual							  ABOOK(1)

NAME
abook - text-based address book program SYNOPSIS
abook [ OPTION ] DESCRIPTION
This manual page documents briefly the abook program. This manual page was written for the Debian GNU/Linux distribution because the original program does not have a manual page. abook is a text-based address book program. It contains Name, Email, Address and various Phone fields. It is designed for use with mutt, but can be equally useful on its own. OPTIONS
-h --help Show usage. -C --config <filename> Use an alternative configuration file (default is $HOME/.abook/abookrc). --datafile <filename> Use an alternative addressbook file (default is $HOME/.abook/addressbook). --mutt-query <string> Make a query for mutt (search the addressbook for <string>). The --datafile option, as documented above, may be used BEFORE this option to search a different addressbook file. --convert [ --informat <inputformat> ] [ --infile <inputfile> ] [ --outformat <outputformat> ] [ --outfile <outputfile> ] Converts <inputfile> in <inputformat> to <outputfile> in <outputformat> (defaults are abook, stdin, text and stdout). The following inputformats are supported: - abook abook native format - ldif ldif / Netscape addressbook - mutt mutt alias - pine pine addressbook - csv comma separated values - palmcsv Palm comma separated values The following outputformats are supported: - abook abook native format - ldif ldif / Netscape addressbook (.4ld) - mutt mutt alias - html html document - pine pine addressbook - gcrd GnomeCard (VCard) addressbook - csv comma separated values - palmcsv Palm comma separated values - elm elm alias - text plain text - spruce Spruce address book - wl Wanderlust address book - bsdcal BSD calendar --add-email Read an e-mail message from stdin and add the sender to the addressbook. --add-email-quiet Same as --add-email but doesn't confirm adding. --formats List available formats. COMMANDS DURING USE
Press '?' during use to get a list of commands. SEE ALSO
mutt(1), abookrc(5) AUTHOR
This manual page was written by Alan Ford <alan@whirlnet.co.uk>, for the Debian GNU/Linux system (but may be used by others). abook was written by Jaakko Heinonen <jheinonen@users.sourceforge.net> 2006-09-06 ABOOK(1)
All times are GMT -4. The time now is 07:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy