The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
AIX send mail with HTML message body and a binary attachment G-Man UNIX for Dummies Questions & Answers 4 03-22-2007 02:15 PM
Send an attachment and html text both in the same mail stefan.yu Shell Programming and Scripting 4 10-26-2006 09:46 PM
sending mails with attachment and also some text in mail body guptan UNIX for Advanced & Expert Users 7 05-25-2006 06:17 AM
Sending attachment thru a mail Rohini Vijay UNIX for Dummies Questions & Answers 1 05-12-2006 01:13 PM
Error when sending mail attachment dbrundrett UNIX for Dummies Questions & Answers 1 01-08-2004 06:26 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-15-2008
sushovan sushovan is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 6
Post 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

But the message i am getting contains text which are garbled.I donot have the permission to use sendmail option(i think so as it is command not found for the path).
So how to send a mail containing html attachment.Please suggest.Thanks in advance.

Regards
-S
  #2 (permalink)  
Old 07-15-2008
zaxxon's Avatar
zaxxon zaxxon is offline Forum Staff  
Moderator
  
 

Join Date: Sep 2007
Location: Germany
Posts: 2,259
Try to tar or compress the file and check if the output is still garbled. Or you might try to send a simple file which contains just some simple characters like "hello here i am".
With what tool did you check the attachment?
If you receive the mail on unix, you might use a tool like munpack or mail client that is able to separate the attachment from the mail text.
  #3 (permalink)  
Old 07-15-2008
sushovan sushovan is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 6
Smile

Hi
Thanks for responding.
I am not getting the attachment,instead its appearing in the message body itself.Its coming like this:

begin 644 /tmp/scripthtml
- Hide quoted text -
M"CPA1$]#5%E012!(5$U,(%!50DQ)0R B+2\O5S-#+R]$5$0@2%1-3" T+C @
M5%)!3E-)5$E/3D%,+R]%3B(^( H)/$A434P@3$%.1STB14XB/CQ(14%$/CQ4
M251,13Y%>&-E<'1I;VX@4W1A='5S/"]4251,13X\+TA%040^"CQ"3T19(&%L
M:6YK/2(C,# V-F9F(B!B9V-O;&]R/2(C,# P,# P(B!L:6YK/2(C,# P,&9F
M(B!T97AT/2(C8V-D9&5E(B!V;&EN:STB(S P,S-F9B(^"CQ#14Y415(^/$@Q
M/@I$35-E<G9E<@H\+T@Q/D=E;F5R871E9"!O;B!$35-E<G9E<B!!<'!L:6-A
M=&EO;CPO0T5.5$52/@H*/%1!0DQ%(%=)1%1(/3$P,"4@0D]21$52/3(@0D]2
M1$520T],3U(](B,P,# P.# B($-%3$Q0041$24Y'/30@0T5,3%-004-)3D<]
M,CX*(" @(" \5%(@5D%,24=./51/4#X*(" @(" \5$0@5TE$5$@]-S4E($)'
M0T],3U(](B,P,#DY9F8B/@H@(" @5&]T86P@;G5M8F5R(&]F($5X8V5P=&EO
M;G,@:6X@9&TM;W)I9VEN+G1X= H@(" @(#PO5$0^"B @(" \5$0@5TE$5$@]
M,C4E($)'0T],3U(](B,P,#DY9F8B/@H@(" @(# *(" @(#PO5$0^"B @(#PO
M5%(^"B @(#Q44B!604Q)1TX]5$]0/@H@(" @(#Q41"!724142#TW-24@0D=#
M3TQ/4CTB(S P.3EF9B(^"B @("!4;W1A;"!N=6UB97(@;V8@17)R;W)S(&EN
M(&1M+6]R:6=I;BYT>'0*(" @(" \+U1$/@H@(" @/%1$(%=)1%1(/3(U)2!"
M1T-/3$]2/2(C,# Y.69F(CX*(" @(" P"B @(" \+U1$/@H@(" \+U12/@H@
=(#PO5$%"3$4^"@H*/"]"3T19/@H\+TA434P^"@H\

Regards
-S
Sponsored Links
Closed Thread

Bookmarks

Tags
mailx, mailx attachment

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:28 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0