Sponsored Content
Full Discussion: Send mail using attachment
Top Forums Shell Programming and Scripting Send mail using attachment Post 302662917 by methyl on Wednesday 27th of June 2012 10:15:03 AM
Old 06-27-2012
What Operating System and version are you using? What Shell to you use?

Please post your code, blotting anything confidential (like email addresses) with X's . Please make it clear whether the attachment is a simple unix text file or something else and what software you are using to read the mail.
 

10 More Discussions You Might Find Interesting

1. AIX

How to send a mail with an attachment from AIX 5.2 OS?

Has anyone written a script to attach a file when sending an email using the mailx command? (1 Reply)
Discussion started by: mintu41
1 Replies

2. UNIX for Advanced & Expert Users

how to send file as attachment with mail ?

hello , i m new to linux/unix , well in my college their is linux server to which we all (i and my frnds) login , we can send mail to each other through command "mail" . but any one can tell me how can i attached a binary file with mail. we are using red hat , "pine ", "mailx" , all... (2 Replies)
Discussion started by: alert_every1
2 Replies

3. Shell Programming and Scripting

how to send a attachment mail in unix

hi, i have the code as below #!/bin/sh MAIL=/usr/bin/Mail Mail_addr="aaa@bb.com" Mail_file="/home/delta/dev/aa.doc" ${MAIL} -s " health check" ${Mail_addr} < ${Mail_file} (6 Replies)
Discussion started by: mail2sant
6 Replies

4. Shell Programming and Scripting

How to send a mail with attachment?

Hi, I usually write a file TEST.MAIL like this to send mails: Importance: High Priority: Urgent X-Priority: 1 (Highest) From: user Subject: error ... text body .... and then I launch it (or writre a c-chell that launchs it) by writing: mail a@b.com < /users/.../TEST.MAIL How can... (4 Replies)
Discussion started by: albaalbetti
4 Replies

5. AIX

Send mail with attachment having csv files

Hi, Could anyone please help me to send multiple files of .csv format in one mail. Thanks Aj (2 Replies)
Discussion started by: atinjain05
2 Replies

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

7. Shell Programming and Scripting

How to send colorful text and attachment to mail

Hi, I want to send color text as body of mail with multiple attachments.How to do this?I used sendmailcommand but this command fails for multiple attachments.Give me some solution on this. :wall: (0 Replies)
Discussion started by: AhmedLakadkutta
0 Replies

8. Shell Programming and Scripting

How to send mail with attachment in Unix

Hi All, Is it possible to send mail in Unix with attachment. If yes, then how?? (8 Replies)
Discussion started by: parthmittal2007
8 Replies

9. Shell Programming and Scripting

Send mail as attachment

Hi All, I am trying to send mail via unix and attaching file along with that mail, but facing issue while sending. I have tried below commands- 1)- uuencode $prmDirOutput/report_mailbody $prmDirOutput/report_mailbody | mailx -s "Acknowledgment file- $subject" $email_id 2)- mutt -a... (4 Replies)
Discussion started by: Amit786
4 Replies

10. Shell Programming and Scripting

Send Mail With Attachment

Hi, I need to send attachment with email as external attachment. Presently, we are using uuencode to make an attachment but it is going as content of body. We are using below command. uuencode "filename1" "filename2" | mailx -r "$SENDFROM" ${SENDTO} In unix box, -a is not supportable... (1 Reply)
Discussion started by: vamshi929
1 Replies
UUENCODE(1C)															      UUENCODE(1C)

NAME
uuencode, uudecode - encode/decode a binary file for transmission via mail SYNOPSIS
uuencode [ source ] remotedest | mail sys1!sys2!..!decode uudecode [ file ] DESCRIPTION
Uuencode and uudecode are used to send a binary file via uucp (or other) mail. This combination can be used over indirect mail links even when uusend(1C) is not available. Uuencode takes the named source file (default standard input) and produces an encoded version on the standard output. The encoding uses only printing ASCII characters, and includes the mode of the file and the remotedest for recreation on the remote system. Uudecode reads an encoded file, strips off any leading and trailing lines added by mailers, and recreates the original file with the speci- fied mode and name. The intent is that all mail to the user ``decode'' should be filtered through the uudecode program. This way the file is created automati- cally without human intervention. This is possible on the uucp network by either using sendmail or by making rmail be a link to Mail instead of mail. In each case, an alias must be created in a master file to get the automatic invocation of uudecode. If these facilities are not available, the file can be sent to a user on the remote machine who can uudecode it manually. The encode file has an ordinary text form and can be edited by any text editor to change the mode or remote name. SEE ALSO
atob(n), uusend(1C), uucp(1C), uux(1C), mail(1), uuencode(5) BUGS
The file is expanded by 35% (3 bytes become 4 plus control information) causing it to take longer to transmit. The user on the remote system who is invoking uudecode (often uucp) must have write permission on the specified file. 4th Berkeley Distribution April 24, 1986 UUENCODE(1C)
All times are GMT -4. The time now is 10:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy