Sponsored Content
Top Forums Shell Programming and Scripting How to attach a file in Linux mail command Post 302264812 by zaxxon on Friday 5th of December 2008 12:58:10 AM
Old 12-05-2008
Use the search function of the forum. This get's asked very often.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How to attach a file in mail?

Hi, I want to know how to send a mail in unix using mailx or mail or sendmail to send a mail with a file attached. I have read the answers from the other threads but I still don't understand. I want to do it in the command line as well as in script. Can anyone help? DO I need to use... (1 Reply)
Discussion started by: firebirdonfire
1 Replies

2. Shell Programming and Scripting

Need to attach a txt file while sending mail

Hi, I need to attach a txt file while sending mail thru Unix. Please help me out in this.. -Charan. (9 Replies)
Discussion started by: charan81
9 Replies

3. Shell Programming and Scripting

How to attach a file & send mail thru script

In shell script how can I attach a file and send a mail. suppose if I written like the following way usr/bin/mail 'subject" "mail_id" < file. a mail goes to the mail-id with the content of file.But I want the file to be atttached to the mail.How can I get it.is there any way for this. ... (9 Replies)
Discussion started by: Mar1006
9 Replies

4. HP-UX

How to attach an excel file in a multipart (mime) mail

Hello. I need to send mails from hp-ux with 2 attachments: a text file and an excel file. So I'm composing a mime file which I will pipe to sendmail utility. This works fine if the only attachment is the text file (i use cat command to attach text content). But I have problems with the format... (3 Replies)
Discussion started by: elcampio
3 Replies

5. Shell Programming and Scripting

Script to attach file to mail

Hello, I have a .dat file containing one line. I need a script to read that line and make it part of the body and send a mail... Let's say the line is $line. I need the script to send a mail with the body "The last disposal feed is $line". Thanks (4 Replies)
Discussion started by: sfetea
4 Replies

6. Shell Programming and Scripting

Attach file in mailx command

Hi I want ot send a mail with aatach a file for this i have tried mailx -s "COMPLETED: deal.sh" -a /usr/local/bin/test.out me@nowhere uuencode /usr/local/bin/test.out /usr/local/bin/test.out | mailx -s "COMPLETED: deal.sh" me@nowhere but of command is not working. so is there any... (0 Replies)
Discussion started by: Himanshu_soni
0 Replies

7. Shell Programming and Scripting

How to attach multiple file to send mail command

Hi, i want color effect on mail as well as multiple attachment.I have code but this code is used for single attachment. I am unable to attach more than one file.:wall: I want to send two attachments -ahmed.csv and ahmed1.csv . Sample content: <html> <body> <b> Hi...</b> </body> </html> ... (1 Reply)
Discussion started by: AhmedLakadkutta
1 Replies

8. Shell Programming and Scripting

I need to attach a file in Linux SHELL Scripting

Hi Geeks, I'm trying to write a script to display the errors in a HTML table format and also it should attach the file and it should display the table in the body of the email. Well i wrote the script successfully and i have got the result, but either table is displaying in the email but not... (2 Replies)
Discussion started by: naren nandale
2 Replies

9. UNIX for Advanced & Expert Users

Attach a document in mail using sendmail command

Hi Guys, May i know how to attach a document using sendmail command in Linux platform.... :confused: (2 Replies)
Discussion started by: Santosh101
2 Replies

10. Shell Programming and Scripting

Unable to attach a .txt file or .log file to mail and mailx command

Hi, I am trying to attach a .log file or .txt file to mail command to send an email once my ksh script executed. I am unable to use mutt command as it has been not installed and i am not supposed to install it. I have tried many ways by googling which has not helped me to succeed. Here is my... (5 Replies)
Discussion started by: Samah
5 Replies
BIFF(1)                                                     BSD General Commands Manual                                                    BIFF(1)

NAME
biff -- be notified if mail arrives and who it is from SYNOPSIS
biff [ny] DESCRIPTION
Biff informs the system whether you want to be notified when mail arrives during the current terminal session. Options supported by biff: n Disables notification. y Enables notification. When mail notification is enabled, the header and first few lines of the message will be printed on your screen whenever mail arrives. A ``biff y'' command is often included in the file .login or .profile to be executed at each login. Biff operates asynchronously via the comsat(8) service. If that service is not enabled, biff will not do anything. In that case, or for syn- chronous notification, use the MAIL variable of sh(1) or the mail variable of csh(1). SEE ALSO
csh(1), mail(1), sh(1), comsat(8) HISTORY
The biff command appeared in 4.0BSD. BUGS
su(1), and biff don't seem to get on too well. This is probably due to the tty still being owned by the person using su. This can result in ``Permission denied'' messages when attempting to change the biff status of your session. Please report bugs to netbug@ftp.uk.linux.org including diffs/patches, compiler error logs or as complete a bug report as is possible. Linux NetKit (0.17-pre-20000412) July 31, 1999 Linux NetKit (0.17-pre-20000412)
All times are GMT -4. The time now is 07:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy