Sponsored Content
Top Forums Shell Programming and Scripting Sending HTML attachment through mail Post 302214968 by sushovan on Tuesday 15th of July 2008 08:47:59 AM
Old 07-15-2008
Bug

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
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Error when sending mail attachment

I have been sending an email attachment from my unix box, but keep getting an error? All though the recipient still receives the email and attachment. Will this error cause problems in the future and how to I cure it? $ uuencode PReSvPRINTER.txt file | mailx -s "File" me@world.com uuencode:... (1 Reply)
Discussion started by: dbrundrett
1 Replies

2. UNIX for Dummies Questions & Answers

Sending attachment thru a mail

Is there any way we can send file attachemnts through mails from a unix server. Does the 'mail' command have such an option ?? (1 Reply)
Discussion started by: Rohini Vijay
1 Replies

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

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

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

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

7. UNIX for Advanced & Expert Users

Sending mail with attachment

Hi, I am using Sun solaris OS unix server I am trying to send mail with an attachment using below script cat test.txt;uuencode test.txt test.txt|mailx -s "$subject" someone@somewhere I m getting mails but with no attachment. Hence i manipulate the script as below and i am... (2 Replies)
Discussion started by: sv0081493
2 Replies

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

9. Shell Programming and Scripting

HTML mail with Attachment

Hi, I am using the below code: #!/bin/ksh SUBJ="Send mail from Unix with file attachments" TO=sudha.viswanathan@jpmorgan.com CC=sudha.viswanathan@jpmorgan.com ( cat << ! To : ${TO} Subject : ${SUBJ} Cc : ${CC} ! cat << ! MIME-Version: 1.0 Content-Type: text/html `cat... (1 Reply)
Discussion started by: sudvishw
1 Replies

10. How to Post in the The UNIX and Linux Forums

Sending a mail with different attachment in AIX

How to Send a mail with multiple attachment also differenet extension using uuencode in AIX. Can you please help me. Its so urgent. Thanks. Regards, Swapnil ---------- Post updated at 05:37 AM ---------- Previous update was at 05:35 AM ---------- I have below code. But attachment... (1 Reply)
Discussion started by: Swapnil Mawle
1 Replies
mail(1B)					     SunOS/BSD Compatibility Package Commands						  mail(1B)

NAME
mail, Mail - interactive message processing system SYNOPSIS
/usr/ucb/mail ... /usr/ucb/Mail ... DESCRIPTION
/usr/ucb/mail and /usr/ucb/Mail are provided as links to /usr/bin/mailx. See mailx(1) for more information on the usage of these commands. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: /usr/ucb/mail +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWscpu | +-----------------------------+-----------------------------+ /usr/ucb/Mail +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWscpu | +-----------------------------+-----------------------------+ SEE ALSO
mailx(1),attributes(5) SunOS 5.11 19 Aug 1998 mail(1B)
All times are GMT -4. The time now is 03:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy