Sponsored Content
Full Discussion: attachment using sendmail
Operating Systems Solaris attachment using sendmail Post 94668 by coffeysm on Tuesday 3rd of January 2006 01:38:12 AM
Old 01-03-2006
You can use mailx (which uses the Sendmail executable) command:

mailx -s "Subject Line" user@somewhere < /name/of/text_file
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Using Sendmail (& attachment)

Hi, This is my first thread. Iam trying the following: OS: Sun Database: DB2, Informix, Oracle * Get the status of the database (using database command line options) * pipe to a text file * send mail of the text file to receiptents. TODO1: First step i tried to send a test message.... (3 Replies)
Discussion started by: kenkanya
3 Replies

2. UNIX for Dummies Questions & Answers

sendmail attachment problem

Hello, i am sending email with following command. The problem is the attachment is displayed as inline text instead of a file attached to email. What should i do? I don't have chance to install new binaries to the server (SunOS) ( \ echo From: Sender ; \ echo Subject: Testing ; \... (1 Reply)
Discussion started by: yakari
1 Replies

3. Shell Programming and Scripting

sendmail attachment issue

Hi All,, After long time, might be this is nth time post on this forum for the same query...but i tried browsing for sometime and i did not get what i wanted :) i have following syntax in my shell scripting.. (cat filename.txt uuencode attachment attachment)|/usr/lib/sendmail -t... (4 Replies)
Discussion started by: Shahul
4 Replies

4. UNIX for Advanced & Expert Users

Sendmail with attachment command line ?

hi.. Could somebody guide me how to send mail with attachment using sendmail command in unix ? Thank you, (2 Replies)
Discussion started by: bh_hensem
2 Replies

5. Shell Programming and Scripting

sendmail with attachment not working

dear all I have below function which send an email, but if I need to add an attachement it won't work instead it write some jibberish to body of the email begin 644 SIGN_OFF_AP_20120626.csv M4TE'3E]/1D9?4TA%150L351-7T1!5$4L0D]/2RQ35$%455,L5D%25%E012Q# %3U5.5`H` ` end function... (6 Replies)
Discussion started by: manas_ranjan
6 Replies

6. Shell Programming and Scripting

Send attachment through sendmail

Hi, I am trying to send log file of a job run in unix machince through sendmail.Though I am able to send the text but it is not sending as attachment. Could you please look into the code and let me know where I have gone wrong fdate=`date %Y%j`... (2 Replies)
Discussion started by: Rossdba
2 Replies

7. Shell Programming and Scripting

Sending attachment using sendmail command

Send_Mail() { C_Date=`date +"%m/%d/%Y"` #Subject="MMDB Load Job Status" for i in `cat $Metafile` do if then email_address=`echo $i | cut -d":" -f2` /usr/lib/sendmail "$email_address" < $Email_File fi done } this is the send mail command i am using .please let me... (1 Reply)
Discussion started by: Alok K Yadav
1 Replies

8. Shell Programming and Scripting

Sendmail with attachment

Hello people, I only have sendmail and uuencode on a Oracle (RH) linux server. While: /usr/bin/uuencode awr.html awr.html | /usr/sbin/sendmail myemail@company.com Is working fine, the ideal for me is to do something like: echo "To: me@company.com" > /home/vasilis/msg.txt echo "Subject: DB... (3 Replies)
Discussion started by: drbiloukos
3 Replies

9. Shell Programming and Scripting

Help with attachment in sendmail

Hi Folks I have below code, which is able to successfully send the content of the output file as html which is body, but i did tried uuencode & mailx -a for sending attachments but to no avail. cat - ${Output_File} <<EOF| /usr/sbin/sendmail -oi -t #From: ${MAILFROM} To: ${MAILTO} Subject:... (5 Replies)
Discussion started by: nikhil jain
5 Replies
uuencode(1)						      General Commands Manual						       uuencode(1)

NAME
uuencode, uudecode - Encodes or decodes a binary file SYNOPSIS
uuencode [file] remotefile uudecode [file...] STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: uudecode: XCU5.0 uuencode: XCU5.0 Refer to the standards(5) reference page for more information about industry standards and associated tags. DESCRIPTION
The uuencode and uudecode commands are used to send a binary file via uucp or other mail. This combination can be used over indirect mail links even when uusend is not available. The uuencode command takes the named 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 name for re-creation on the remote system, specified by remotefile. The uudecode command reads an encoded file, strips off any leading and trailing lines added by mailers, and recreates the original file with the specified mode and name. Filter the encode through the uudecode program. Filtering the file causes the original file to be auto- matically recreated. This is possible on the uucp network by using sendmail or by making rmail be a link to mailx. In each case, an alias must be created in a master file to get the automatic invocation of uudecode. If neither of the preceding facilities is available on a user's system, uudecode can be applied to the file manually by editing the file with any text editor, removing the trailing and leading lines, and changing the mode or remote system name. The encoded file is an ordinary text file. EXAMPLES
In the following example, the ex1 file is encoded; the output is also redirected to the ex1.out file: prompt> uuencode ex1 ex1.en > ex1.out If the source ex1 file is as follows: This example shows how to encode a file using uuencode and how to decode a file using uudecode. The encoded ex1.out file would be as follows: begin 644 ex1.en M5&AI<R!E>&%M<&QE('-H;W=S"G1H92!H;W<@=&@96YC;V1E"F$@9FEL92!U M<VEN9PIU=65N8V]D90IA;F0@:&]W('1O"F1E8V]D92!A(&9I;&4*=7-I;F<@ *=75D96-O9&4N"F]D ` end In the following example, the ex1.out file is decoded: prompt> uudecode ex1.out In this example, the uudecode command decodes the file and puts the output in ex1.en. To package up a source tree using tar, com- press it, uuencode it, and mail it to a user on another system, enter: tar cf - src_tree | compress | uuencode src_tree.tar.Z | mail sys1!sys2!user1 (Enter the command entirely on one line, not on two lines as shown above.) When uudecode is run on the target system, the src_tree.tar.Z file is created; it may then be uncompressed and dearchived with tar. SEE ALSO
Commands: ct(1), cu(1), mailx(1), Mail(1), rmail(1), sendmail(8), tip(1), uucico(8), uucleanup(8), uucp(1), uulog(1), uuname(1), uupick(1), uusched(8), uusend(1), uustat(1), uuto(1), uux(1) Standards: standards(5) uuencode(1)
All times are GMT -4. The time now is 06:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy