Sponsored Content
Top Forums Shell Programming and Scripting Mail sending with multiple attachement(pdf and csv) with html content from Linux Post 302876185 by geeky404 on Friday 22nd of November 2013 07:05:35 AM
Old 11-22-2013
You can try
Code:
mutt -e 'my_hdr Content-Type: text/html' ... < your_html

or
Code:
 mutt -e "set content_type=text/html ... < your_html"

In some version of mutt these works. But honestly I just google it because I was curious, I never tried it, so it might won't work. Sorry
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sending mail from Unix - For html output

I have automated some checks - and I want to send a email when there is an issue. This is fine and I can send the email. However - I want to generate the email in html format so I can highlight any issues to a reader.. ie. If there is a disk space issue - then the email will highlight the... (2 Replies)
Discussion started by: frustrated1
2 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 Dummies Questions & Answers

sending mail with html content

hi, I am new to unix. I need send html content as a mail from my sun-solaris2.6 work station. When I tried that the recipient gets it as html code with all the tags. any solutions? thanx in advance (2 Replies)
Discussion started by: gmchoudary
2 Replies

4. Shell Programming and Scripting

Sending HTML attachment through mail

Hi I am new to unix and scripting.I am trying to send a html file as an attachment. SUBJECT="Type of Exceptions in Application" TO=Sushovan.Samals@gmail.com SPOOLFILE=/data/reg/tlogs/Monitor.html #echo "Send the E-mail message..." uuencode $SPOOLFILE $SPOOLFILE | mailx -s "$SUBJECT" $TO... (2 Replies)
Discussion started by: sushovan
2 Replies

5. Shell Programming and Scripting

sending attachement in mail

Hi , I am using the below code to send mail through a script which run as a cron job. msgdate=`date +"%a, %e %Y %T %z"` daemail=$(cat <<! From: $from To: $emailtarget Subject: $subject Mime-Version: 1.0 Content-Type: multipart/mixed; Content-Disposition: inline $priority $CONTENT !)... (2 Replies)
Discussion started by: ahamed
2 Replies

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

7. Shell Programming and Scripting

Sending a csv attachment and html text together.

Hello, I need to send below text (in a file ABC)as html text in mail body and the same as csv attachment 1,2,3 4,5,6 7,8,9 but to send as html text in mailbody we use echo "Subject: Report " | cat - ABC | /usr/lib/sendmail -t a@xyz.com and to send as an attachment in csv format we... (9 Replies)
Discussion started by: skhichi
9 Replies

8. UNIX for Advanced & Expert Users

Mutt for html body and multiple html & pdf attachments

Hi all: Been racking my brain on this for the last couple of days and what has been most frustrating is that this is the last piece I need to complete a project. There are numerous posts discussing mutt in this forum and others but I have been unable to find similar issues. Running with... (1 Reply)
Discussion started by: raggmopp
1 Replies

9. Shell Programming and Scripting

Sending csv file as an attachement from Linux

Hi i am trying to send a csv file as an attachment via mail from linux. i am using the below script. echo "X-Mailer: htmlmail" $VERSION echo "Mime-Version: 1.0" echo 'Content-Type: multipart/mixed; boundary="-q1w2e3r4t5"' echo '---q1w2e3r4t5' echo "Content-Type: text/html; charset=US-ASCII"... (1 Reply)
Discussion started by: mohanalakshmi
1 Replies

10. Shell Programming and Scripting

Need help in sending html mail with attachment

Hi Everyone, I am facing problems in sending html mail with attachemnt. I will able to send mail with attachment (plain text ) using mailx -s and uuencode command and also html mail without attachment using sendmail option. However I am not able to send html mail along with attachment.Either... (2 Replies)
Discussion started by: karthik adiga
2 Replies
ns_guesstype(3aolserver)				    AOLserver Built-In Commands 				  ns_guesstype(3aolserver)

__________________________________________________________________________________________________________________________________________________

NAME
ns_guesstype - commands SYNOPSIS
ns_guesstype filename _________________________________________________________________ DESCRIPTION
This command guesses and returns the MIME type of filename, based on the file extention. It has an extensive set of default mappings. You can also add your own mappings in the "ns/server/servername/mimetype" section of the config file. MIMETYPES
The following extentions and mimetypes are the default maps. .adp text/html .ai application/postscript .aif audio/aiff .aifc audio/aiff .aiff audio/aiff .ani application/x-navi-animation .art image/x-art .au audio/basic .avi video/x-msvideo .bin application/x-macbinary .bmp image/bmp .css text/css .csv application/csv .dci text/html .dcr application/x-director .dir application/x-director .dp application/commonground .dxr application/x-director .elm text/plain .eml text/plain .exe application/octet-stream .gbt text/plain .gif image/gif .gz application/x-compressed .hqx application/mac-binhex40 .htm text/html .html text/html .jfif image/jpeg .jpe image/jpeg .jpg image/jpeg .jpeg image/jpeg .js application/x-javascript .ls application/x-javascript .map application/x-navimap .mid audio/x-midi .midi audio/x-midi .mocha application/x-javascript .mov video/quicktime .mpe video/mpeg .mpeg video/mpeg .mpg video/mpeg .nvd application/x-navidoc .nvm application/x-navimap .pbm image/x-portable-bitmap .pdf application/pdf .pgm image/x-portable-graymap .pic image/pict .pict image/pict .pnm image/x-portable-anymap .png image/png .ps application/postscript .qt video/quicktime .ra audio/x-pn-realaudio .ram audio/x-pn-realaudio .ras image/x-cmu-raster .rgb image/x-rgb .rtf application/rtf .sht text/html .shtml text/html .sit application/x-stuffit .snd audio/basic .sql application/x-sql .stl application/x-navistyle .tar application/x-tar .tcl text/plain .text text/plain .tgz application/x-compressed .tif image/tiff .tiff image/tiff .txt text/plain .xbm image/x-xbitmap .xpm image/x-xpixmap .vrml x-world/x-vrml .wav audio/x-wav .wrl x-world/x-vrml .z application/x-compressed .zip application/x-zip-compressed SEE ALSO
nsd(1), info(n), ns_return(n) KEYWORDS
mime AOLserver 4.0 ns_guesstype(3aolserver)
All times are GMT -4. The time now is 08:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy