Solved

Sending the file attachment  via mailx.

Posted on 2001-08-07
5
422 Views
Last Modified: 2010-04-21
I'm Struggling with sending the physical file
with the e-mail, using the mailx.
By default option if you do
mailx -s "Subject" address@abc.com < file_name.txt
it include the file's text into the email body.
How can I avoid that and submit the file
for downloading by recipient?

Thanks
0
Comment
Question by:vitali
5 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6361383
dou you mean:

  echo "http://host.your.dom/downloads/filename.txt"|mailx -s "Subject" address@abc.com
0
 
LVL 1

Expert Comment

by:stan64
ID: 6363977
you could try

uuencode filename | mailx -s "Subject" address@abc.com

hth
stan
0
 
LVL 14

Accepted Solution

by:
chris_calabrese earned 100 total points
ID: 6364594
Do you want the file as an attachment or a reference to the file where it can be downloaded from?

If the former, then stan64's suggesting _may_ work, but only if the recipient's mailer understands uuencoded attachments (not all do).  Another solution would be to use MIME encoding (universally supported), in which case you'll need a copy of Metamail from ftp://thumper.bellcore.com/pub/nsb/.

If the latter, ahoffman's suggestion is on the right path, though you may need an ftp:// URL instead of http:// depending on circumstances.
0
 
LVL 20

Expert Comment

by:tfewster
ID: 7774694
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation for this question in the Cleanup topic area as follows:
- Answered by chris_calabrese

Please leave any comments here within the next 7 days

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

tfewster (I don't work here, I'm just an Expert :-)
0
 

Expert Comment

by:SpideyMod
ID: 7864306
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now