Common Issue: Table to be displayed in mail content and not as an attachment


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Common Issue: Table to be displayed in mail content and not as an attachment
# 15  
Old 03-20-2013
If you see a toy in outlook or thunderbird that you want to duplicate, like importance, you can look at the message source when you receive it. If there are lines in the header area of the message near the Subject: line, you can put them in on unix/linux mail/mailx -s using a quoted line feed.
Code:
Received: from WLTWA305XUSE02.corp.bankofamerica.com
 ([fe80::b0f3:3f1b:bfbe:81e3]) by WLTWA301XUSE02.corp.bankofamerica.com
 ([fe80::586:ebe5:4135:ef7d%23]) with mapi id 14.02.0309.003; Wed, 20 Mar 2013
 14:56:59 -0400
Content-Type: application/ms-tnef; name="winmail.dat"
Content-Transfer-Encoding: binary
From: "my name" <my@email>
To: "my name" <my@email>
Subject: high importance, bank signature with graphic
Thread-Topic: high importance, bank signature with graphic
Thread-Index: Ac4lnLIsMUDJWyQMSBiGwrAktM9XKw==
Importance: high
X-Priority: 1
Date: Wed, 20 Mar 2013 14:56:58 -0400
Message-ID: <E2CF64EDAFC2A34F9CD656DDE4CF77CAD288...kofamerica.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-Exchange-Organization-SCL: -1
X-MS-TNEF-Correlator: <E2CF64EDAFC2A34F9CD656DDE4CF77CAD288...kofamerica.com>
MIME-Version: 1.0
X-MS-Exchange-Organization-AuthSource: WLTWA301XUSE02.corp.bankofamerica.com
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 03
X-Originating-IP: [171.206.3.27]
X-MS-Exchange-Organization-AVStamp-Mailbox: SMEXr^dE;979900;0;This mail has
 been scanned by Trend Micro ScanMail for Microsoft Exchange;

If you want to compose the entire email, such as to do a message and multiple attachments or html with graphics, you need a more advanced email client like mutt or take over the entire upper layer using sendmail or connecting to port 25 to talk SMTP or ESMTP. However, you can steal the how from fancier email clients, as it all has to go into text in the end. Some mime email clients do send binary in the clear, but they embed it in the text with text start and end marker strings. It saves the > 4 for 3 cost of base 64 and uucp encodings.

Last edited by DGPickett; 03-20-2013 at 04:09 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Facing issues with Content-Type:application/x-download Content-Disposition:attachment

I am in the process of developing a perl cgi page. I had succeeded in developing the page but there are few errors/issues with the page. description about cgi page: My CGI page retrieves all the file names from an directory and displays the files in drop down menu for downloading the... (5 Replies)
Discussion started by: scriptscript
5 Replies

2. Shell Programming and Scripting

Represent the data in table format as in mail content

hi all, I want to Represent the data in table format in mail content sample data should be like this...but i m trying to send this table to mail using unix command...hw do i do????even i echoed the table contents ...doesnt work.... help me <table style="background-color:lightblue;">... (8 Replies)
Discussion started by: navsan
8 Replies

3. Shell Programming and Scripting

Help with duplicate common data content

Input file: #data_131 0 >content..._* 1 >content..._at_+/97.20% #data_137 0 >content..._* 1 >content..._at_+/97.20% 2 >seq..._* 3 >content..._at_+/97.20% 4 >content..._at_+/97.20% #data_141 0 >content..._* #data_150 0 >content..._* 1 >content..._at_+/97.20% 2 >seq..._* 3... (3 Replies)
Discussion started by: perl_beginner
3 Replies

4. Shell Programming and Scripting

Format of content displayed in the attachment of email

Hi, I'm facing a problem in mailing attachments using uuencode in mailx. I got to attach a couple of flatfiles. I'm able to attach and mail the files successfully. But there is a problem in the format of the flatfiles when they are received as an attachemnt. For Example : Consider... (0 Replies)
Discussion started by: Sindhuap
0 Replies

5. 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

6. Shell Programming and Scripting

Issue with mail attachment

Hi Unix Gurus, Need your help regarding a weird issue that I'm facing. I have an automated unix script that sends out PGP encrypted reports/feeds to our users as mail attahments. Every thing has been going well and all the users have no issues except one, who instead of getting the attachment,... (1 Reply)
Discussion started by: arunsoman80
1 Replies

7. UNIX for Dummies Questions & Answers

Issue on sending a mail with attachment using unix script ?

Issue on sending a mail with attachment using unix script ? Below is my code and is working fine and there is a issue in the attachment, the attachment file printing as a text-encripted message in the mail draft box instead of putting as a attachment (cat $msg; uuencode $attach1 in1.txt ;... (2 Replies)
Discussion started by: gksenthilkumar
2 Replies

8. Solaris

Comparing the common columns of a table in two files

Hi, I have two text files.The first and the 2nd file have data in the same format For e.g. The first file has BOOKS COUNT: 40 BOOKS AUTHOR1 SUM:1018 MAX:47 MIN:1 AVG:25.45 BOOKS AUTHOR3 SUM:181 MAX:48 MIN:3 AVG:18.1 Note:Read it as Table columnname sum(column) max(column) min(column)... (1 Reply)
Discussion started by: ragavhere
1 Replies

9. UNIX for Advanced & Expert Users

mailx commannd - Mail and Attachment in same mail

Hi , I am using mailx command for sending the mails. Rightnow I am sending the attachment (by using uuencode $filename) as a seperate mail.I wanna send the attachment also with the same mail. (6 Replies)
Discussion started by: sharif
6 Replies
Login or Register to Ask a Question