Sponsored Content
Full Discussion: mail with attachments
Operating Systems Solaris mail with attachments Post 302221190 by hercu on Sunday 3rd of August 2008 10:57:15 PM
Old 08-03-2008
Add package for mut first. The command should be something like this:

$ mutt -s "your mail" -a /tmp/your_file.tar.gz herc@telus.com < /tmp/mymail_message.txt
Where,

herc@telus.com - is the recipient
/tmp/mymail_message.txt - is the main body of the e-mail
/tmp/your_file.tar.gz - is an attachment (with option -a)
"Your mail" - is a subject line (option -s)

Hope that helps...
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

mail attachments

I'm writing scripts on HP-UX. Is there a way to attach a file to a mail message. I don't want to imbed the data in the mail message. (1 Reply)
Discussion started by: Multithreaded
1 Replies

2. UNIX for Dummies Questions & Answers

file name got cut when using mail attachments

I am using the following command to send a zip file as an attachment to my internet email-id. uuencode ABC_DEFG_HIJ.zip ABC_DEFG_HIJ.zip | mail -s "attachment from shell" pal@yahoo.com Eventhough i have given the attached file as 'ABC_DEFG_HIJ.zip', when i receive the mail in my internet... (3 Replies)
Discussion started by: Pal
3 Replies

3. UNIX for Dummies Questions & Answers

sending attachments in mail

Hi , i have tried the following command to send an email with an attachment its working fine but i am getting mail with the embeded content inside the mail that too truncated. i wanted it as an attachment. /usr/lib/sendmail -F "MAC SIA" address "rajendra@abc.com.sg" -t <... (6 Replies)
Discussion started by: rajendragora
6 Replies

4. AIX

Send mail attachments and have a mail body

Hi, How can I send mail attachments from shell script (AIX) and have a mail body as well ? Thanks in advance. (1 Reply)
Discussion started by: shibajighosh
1 Replies

5. UNIX for Advanced & Expert Users

Mail attachments getting corrupted...

Hi , Whenever I try to send mails with attachments to external email Id's the attachment is not encoded properly which appears along with body (text) of the mail. The attachement is always getting corrupted. Can anyone please suggest a solution. Regards, Sandipan (1 Reply)
Discussion started by: Sandipan
1 Replies

6. Shell Programming and Scripting

e-mail with multiple binary attachments!

Hi, I have to send email from UNIX with multiple excel attachments and the sender name needs to be customized (sender name need not to be UNIX user). I have checked many ways from this forum and other sources. But, nothing did work for me. Please help me! thanks, Raja. (1 Reply)
Discussion started by: smr_rashmy
1 Replies

7. Shell Programming and Scripting

Problem with multiple mail attachments

Hi everyone... I am facing problem with the multiple mail attachments. cd /work/mohan/pi_log/ mail_file='uuencode ahmedabad.csv ahmedabad.csv ; uuencode ahmedabad_devrpt_20110530.csv ahmedabad_devrpt_20110530.csv' ( $mail_file ) | mailx -m -s"test" domain@website.com its giving me error... (1 Reply)
Discussion started by: mohanm
1 Replies

8. Shell Programming and Scripting

Adding Attachments to mail

Hi, I need to send a mail with html code in body and an attachment along with the body and subject. The html code must display a table with data in it in the mail. I have tried the 'sendmail' command, but I am am able to display the table in the mail and unable to attach an attachment. ... (5 Replies)
Discussion started by: Durga Prasad NK
5 Replies

9. Shell Programming and Scripting

Uuencode for mail attachments not working

Hi, I'm trying to send mail with attachments using uuencode, but it doesn't work. Command (also tried with mailx): uuencode testfile testfile | mail emailadress The email I get doesn't have an attachment, and has this in the message body: begin 664 testfile %=&5S=`H` ` end ... (4 Replies)
Discussion started by: Subbeh
4 Replies

10. UNIX for Advanced & Expert Users

Read mail attachments in AIX

Hello All, Is there a way to read/view email attachments in AIX? Here's my scenario; I have users that will being scanning documents for digital storage. To make it easier for the users, I would like for them to scan and email the pdf version of the document directly to one of my AIX... (3 Replies)
Discussion started by: bbbngowc
3 Replies
DEBNEST_MAKE(1) 					User Contributed Perl Documentation					   DEBNEST_MAKE(1)

NAME
debnest_make - creates a nested debian source package tree SYNOPSIS
debnest_make <.dsc> [<suffix>] DESCRIPTION
Debnest is a program to create a nested debian source package tree from the specified debian source control file <.dsc>. The nested debian source package will be named as <its original source package>-debian by default and its upstream version will be <original debian source version> and its revision will be 1. If you want to change -debian, you can specify it to second argument. EXAMPLES
This creates debnest-debian-0.0.1/ and debnest-debian-0.0.1.orig/ ~$ debnest_make /tmp/debnest_0.0.1.dsc ~$ ls debnest-debian-0.0.1/ debnest-debian-0.0.1.orig/ ~$ cd debnest-debian-0.0.1 ~$ debuild ~$ ls .. debnest-debian-0.0.1/ debnest-debian_0.0.1-1_i386.changes debnest-debian_0.0.1-1.diff.gz debnest-debian_0.0.1.orig.tar.gz debnest-debian_0.0.1-1.dsc debnest_0.0.1-1_all.deb ~$ tar ztf ../debnest-debian_0.0.1.orig.tar.gz debnest-debian-0.0.1.orig/ debnest-debian-0.0.1.orig/debnest_0.0.1.tar.gz debnest-debian-0.0.1.orig/debnest_0.0.1.dsc This creates debnest-local-0.0.1/ and debnest-local-0.0.1.orig/ ~$ debnest_make /tmp/debnest_0.0.1.dsc -local ~$ ls debnest-local-0.0.1/ debnest-local-0.0.1.orig/ ENVIRONMENT
EMAIL, DEBEMAIL If either of these variables is set, it will be used as the maintainer/uploader's email address. If both are set, DEBEMAIL will take precedence. If neither is set, the current user's email address (or, if that fails, the email of the last original package uploader) will be used. DEBFULLNAME The maintainer/uploader's full name to be used. If unset, the name specified in the passwd file or, if there is none, the name of the last original package uploader. DEBNEST_RULES The rules file to be used. If unset, /usr/share/debneset/rules is used. If you want to use cdbs based rules, you would set it '/usr/share/debnest/rules-cdbs'. Because /usr/share/debnest/ is a default search path, you can specify just 'rules-cdbs'. EXTRA_BUILDDEP Extra build-dependency to be added in your new debian/control. Default is ", debnest" perl v5.8.8 2007-11-16 DEBNEST_MAKE(1)
All times are GMT -4. The time now is 03:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy