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
MHMAIL(1)                                                            [nmh-1.5]                                                           MHMAIL(1)

NAME
mhmail - send or read mail SYNOPSIS
mhmail [addrs ...] [-body text] [-cc addrs ...] [-from addr] [-subject subject] [-version] [-help] DESCRIPTION
mhmail is intended as a replacement for the standard Berkeley mail program (mail or mailx), which is compatible with nmh. This program is intended for the use of programs such as cron, which expect to send mail automatically to various users. It is also used by various nmh commands to mail various error notifications. Although mhmail can be used interactively, it is recommended that comp and send be used instead to send messages. When invoked without arguments, it simply invokes inc to incorporate new messages from the user's maildrop. When one or more users is specified, a message is read from the standard input and spooled to a temporary file. mhmail then invokes post with the name of the tempo- rary file as its argument to deliver the message to the specified user. The -subject subject switch can be used to specify the "Subject:" field of the message. By default, mhmail will read the message to be sent from the standard input. You can specify the text of the message at the command line with the -body text switch. If the standard input has zero length, mhmail will not send the message. You can use the switch -body "" to force an empty message. Normally, addresses appearing as arguments are put in the "To:" field. If the -cc switch is used, all addresses following it are placed in the "cc:" field. By using -from addr, you can specify the "From:" header of the draft. Naturally, post will fill-in the "Sender:" header correctly. FILES
/usr/bin/mh/inc Program to incorporate maildrop into folder /usr/lib/mh/post Program to deliver a message /tmp/mhmail* Temporary copy of message SEE ALSO
inc(1), post(8) DEFAULTS
None CONTEXT
If inc is invoked, then inc's context changes occur. MH.6.8 11 June 2012 MHMAIL(1)
All times are GMT -4. The time now is 09:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy