👤
Home Man
Search
Today's Posts
Register

BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

Need to attach a txt file while sending mail

Tags
mailx, mailx attachment

👤 Login to reply

 
Thread Tools Search this Thread
# 1  
Old 01-09-2006
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.
# 2  
Old 01-09-2006
sending attachment had been answered many times,

could you please make use of the search facility:

search the forum
# 3  
Old 01-10-2006
I need to attach a txt file as well as embed some text in the mail body.

Thanks..

I need to attach a txt file as well as embed some text in the mail body.

How to add the mail body(Some text) while attaching a file like this :

uuencode abc.txt abc.txt | mailx -s "Attaching test" user@domain.com

Charan.
# 4  
Old 01-10-2006
Code:
uuencode abc.txt abc.txt | mailx -s "Attaching test" user@domain.com < your_file_containing_message 

# 5  
Old 01-10-2006
It Doesnt attach the txt file while embedding the mail body.

Madhan,

I tried this already..

uuencode abc.txt abc.txt | mailx -s "Attaching test" user@domain.com < your_file_containing_message

This is sending out a mail with the body of the "your_file_containing_message"
file.Doesnt attach the txt file.

Charan.
# 6  
Old 01-10-2006
I am very sure the above command would work as requested.

Could you please post the exact command what you had tried?

That would be helpful to find out the problem.
# 7  
Old 01-10-2006
I have used this..

uuencode datetime.txt datetime.txt | mailx -s "Attaching test" charan.p@igate.com < mail.txt

I am receiving the mail with the body of the "mail.txt" file.
I dont receive the attachment.

Charan.
👤 Login to reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Unable to attach a .txt file or .log file to mail and mailx command Samah Shell Programming and Scripting 5 04-27-2017 02:49 PM
Sending mail in UNIX with body and attachment(.txt) using sendmail command KRR UNIX for Dummies Questions & Answers 7 10-12-2013 03:05 PM
problem with sending mail from txt file having HTML code via sendmail -t jassi10781 Shell Programming and Scripting 4 09-14-2012 06:36 AM
How to attach multiple file to send mail command AhmedLakadkutta Shell Programming and Scripting 1 09-22-2011 05:30 PM
Script to attach file to mail sfetea Shell Programming and Scripting 4 11-26-2010 07:39 AM
Not able to attach text in body of email while sending mail with attachment jmathew99 Shell Programming and Scripting 6 05-07-2010 06:04 AM
How to attach an excel file in a multipart (mime) mail elcampio HP-UX 3 08-23-2009 08:54 PM
How to attach a file in Linux mail command rohit22hamirpur Shell Programming and Scripting 1 12-05-2008 12:58 AM
How to attach a file & send mail thru script Mar1006 Shell Programming and Scripting 9 10-12-2006 08:54 AM
How to attach a file in mail? firebirdonfire UNIX for Dummies Questions & Answers 1 03-29-2001 06:38 AM


All times are GMT -4. The time now is 09:14 PM.

Unix & Linux Forums Content Copyright©1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password





Not a Forum Member?
Forgot Password?