Sponsored Content
Top Forums Shell Programming and Scripting Sending a csv attachment and html text together. Post 302661333 by skhichi on Monday 25th of June 2012 06:59:56 AM
Old 06-25-2012
Actually I need to send csv attachment and html text together in a single mail so that below data comes in tabular format in mail body and in csv as a attachment:

1,2,3
4,5,6
7,8,9

Please suggest. Let me know if anything is unclear.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

sending mails with attachment and also some text in mail body

Hi, Can some one help me with the syntax of the mailx that should send an attachment and also some text in the message body together. When I am using the following syntax it is not sending the attachment but only the message body. unix2dos -ascii $REPORTFILE | uuencode $PCFILE | mailx -s... (7 Replies)
Discussion started by: guptan
7 Replies

2. Shell Programming and Scripting

Sending email with text & attachment using mailx

I spent some time working this out, with a little help from various forums, and thought the community would like to know : Here is how you can send an email from a single Unix command line : /usr/bin/echo "Email text\nNew line\nAnother new line" >x | uuencode sourcefile.txt sourcefile.txt |... (3 Replies)
Discussion started by: haryadoon
3 Replies

3. Shell Programming and Scripting

Send an attachment and html text both in the same mail

Hi all, I am working on UNIX (Solaris28). I would like to send an email in which the body will be in html format and, in the same mail, a xls file has to be attached. I have tried this: the file is correctly attached but the body comes as html source and not formatted. If I do not attach the... (4 Replies)
Discussion started by: stefan.yu
4 Replies

4. UNIX for Dummies Questions & Answers

HTML message with attachment (text-file)

Hello: I've searched de forum but could not find an answer to send an email via sendmail in HTML with an text-file (plain-text) as attachment: My code: export FROM="Me" export MAILTO="mymail" export SUBJECT=$TITULO$bbdd export BODY=$LOG ( echo "FROM:$FROM" echo "To: $MAILTO"... (2 Replies)
Discussion started by: Felix2511
2 Replies

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

6. Shell Programming and Scripting

Not able to attach text in body of email while sending mail with attachment

Hi, We have been trying to send mail with attachment and it is going fine, but when we try to attach a text to the body of the email, we find that the mail is going fine with the body text but the attachment is not going through. We are using ksh. The command that is successfull without the... (6 Replies)
Discussion started by: jmathew99
6 Replies

7. Shell Programming and Scripting

Problem in sending inline html with an attachment using sendmail

MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=border --border Content-Type: text/html Content-Disposition: inline <html><body><h2>This text should be displayed with html formatting</h2></body></html> --border Content-Type: text/plain Content-Disposition: attachment This text... (2 Replies)
Discussion started by: thulasidharan2k
2 Replies

8. UNIX for Dummies Questions & Answers

Sending html email with html attachment

Hello, I have a script which is sending an html file as an attachment. #!/usr/bin/ksh export MAILTO="user@company.com" export CONTENT="/usr/tmp/file.html" export SUBJECT="EmailSubject" ( echo "Subject: $SUBJECT" echo "MIME-Version: 1.0" echo "Content-Type: text/html" echo... (0 Replies)
Discussion started by: sreenathkg
0 Replies

9. Shell Programming and Scripting

Mail sending with multiple attachement(pdf and csv) with html content from Linux

Hi, We have a requirement to send multiple attachment(pdf and csv) along with html content in a single mail. For that we are using uuencode. It is working for single pdf attachment and html content. But we are unable to send both pdf and csv attachment with html content. Below is the script.... (5 Replies)
Discussion started by: dholea
5 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 12:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy