Sponsored Content
Top Forums Shell Programming and Scripting Script to Convert HTML to MIME mail -- HELP! Post 302311145 by otheus on Tuesday 28th of April 2009 03:22:37 AM
Old 04-28-2009
The newline breaks before "name=" and "boundary=" do not make sense. I suggest that however you are viewing the original, as composed by Thunderbird, is not correctly showing you linebreaks/spacing.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Using MIME to send html files

:confused: I am a programmer, but need to work with UNIX in this particular situation. I am used to the plain "mail -s" command and also familiar with how to send attachments in html... but I now need to send an email (not an attachment) in html format so I can embed links... etc. I am told... (2 Replies)
Discussion started by: cgardiner
2 Replies

2. Shell Programming and Scripting

how to send mail in UNIX using MIME

Hi, I am searching for an option to send mail with multiple attachments using unix. I know uuencode option, but I dont have the executable in our machines. So I am looking for some other option to do this. And I heard that we can send mails using MIME. Can anyone help me with the syntax and... (2 Replies)
Discussion started by: srilaxmi
2 Replies

3. Shell Programming and Scripting

Awk script to convert csv to html

Hi Written some script to convert csv to html but could not add table headers.Below are the errors iam getting ./csv2html | more + awk -v border=1 -v width=10 -v bgcolor=black -v fgcolor=white BEGIN { printf("<table border=\"%d\" bordercolor=\"%s\" width=\"%d\"... (2 Replies)
Discussion started by: zeebala1981
2 Replies

4. Shell Programming and Scripting

MIME - HTML mail with Excel attachment - Please help!

#!/bin/ksh ( echo "MIME-Version: 1.0" echo "Content-Type: multipart/mixed; boundary=frontier" echo "--frontier" echo "Content-Type: text/html" echo "Content-Disposition: inline" echo "\n" echo "<html><body><h1>this is html formatted text</h1></body></html>" echo "--frontier" echo... (1 Reply)
Discussion started by: thulasidharan2k
1 Replies

5. Shell Programming and Scripting

Convert shell script output txt file to html table

Hi, I have script which generates the output as below: Jobname Date Time Status abc 12/9/11 17:00 Completed xyz 13/9/11 21:00 Running I have the output as a text file. I need to convert it into a HTML Table and sent it thru email ... (6 Replies)
Discussion started by: a12ka4
6 Replies

6. Shell Programming and Scripting

Need to convert datafeed to html using script

Hi All, I am having datafeed content in CSV format like below. Any help to create a script. I need read the CSV file on loop and update it in html format for web publishing I want to chage the data using my token based template and save the file out to new csv file (3 Replies)
Discussion started by: ranjancom2000
3 Replies

7. Shell Programming and Scripting

Script to convert CSV file to HTML

Hi, I have made a a script which creates a csv file as daily database report However i want to covert that csv file to html because csv file does not have a good visibilty. So it is possible to have such csv to html coversion script. Your prompt help much appreciated. Thanks in advance (4 Replies)
Discussion started by: sv0081493
4 Replies

8. Shell Programming and Scripting

Script to convert csv file to html with good visibility

Hi, I have Below script which converts csv file to html succesfully.but the visiblity is simple in black n white. I want to have better visibilty of each columns in different colours(like green).As it is a Database report suppose some tablespace available space is less than 20% then it should... (7 Replies)
Discussion started by: sv0081493
7 Replies

9. Shell Programming and Scripting

Convert shell script output txt file to html table

My concnern related to the post -Convert shell script output txt file to html table, in this how to print the heading as color. awk 'BEGIN{print "<table>"} {print "<tr>";for(i=1;i<=NF;i++)print "<td>" $i"</td>";print "</tr>"} END{print "</table>"}' <filename> (8 Replies)
Discussion started by: sarajobmai
8 Replies

10. UNIX for Beginners Questions & Answers

How to convert my /bin/sh script with cgi and html to run it on browser!??

Hello, I want to run this script on my CentOS 6 via browser : ________________________________________________________________________________________________ #!/bin/sh echo Username? read MY_NAME echo Provisional file name? read MY_FILE echo File NAME you want to save? read MY_FILE2... (16 Replies)
Discussion started by: juta2020
16 Replies
Dancer::MIME(3pm)					User Contributed Perl Documentation					 Dancer::MIME(3pm)

NAME
Dancer::MIME - Singleton object to handle MimeTypes SYNOPSIS
# retrieve object instance my $mime = Data::MIME->instance(); # return a hash reference of user defined types my $types = $mime->custom_types; # return the default mime-type for unknown files $mime->default # set the default mime-type with Dancer::Config or Dancer, like set default_mime_type => "text/plain"; # or directly in your config.yml file. # add non standard mime type $mime->add_type( foo => "text/foo" ); # add an alias to an existing type $mime->add_alias( bar => "foo" ); # get mime type for standard or non standard types $nonstandard_type = $mime->for_name('foo'); $standard_type = $mime->for_name('svg'); # get mime type for a file (given the extension) $mime_type = $mime->for_file("foo.bar"); PUBLIC API
instance my $mime = Dancer::MIME->instance(); return the Dancer::MIME instance object. add_type # add nonstandard mime type $mime->add_type( foo => "text/foo" ); Add a non standard mime type or overrides an existing one. add_alias # add alias to standard or previous alias $mime->add_alias( my_jpg => 'jpg' ); Adds an alias to an existing mime type. for_name $mime->for_name( 'jpg' ); Retrieve the mime type for a standard or non standard mime type. for_file $mime->for_file( 'file.jpg' ); Retrieve the mime type for a file, based on a file extension. custom_types my $types = $mime->custom_types; Retrieve the full hash table of added mime types. name_or_type my $type = $mime->name_or_type($thing); Resolves the $thing into a content $type whether it's the name of a MIME type like "txt" or already a mime type like "text/plain". AUTHORS
This module has been written and rewritten by different people from Dancer project. LICENCE
This module is released under the same terms as Perl itself. SEE ALSO
Dancer perl v5.14.2 2011-11-30 Dancer::MIME(3pm)
All times are GMT -4. The time now is 01:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy