Solved

Sending the file attachment  via mailx.

Posted on 2001-08-07
5
426 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 21

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 Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
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 several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

685 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