Solved

Sending the file attachment  via mailx.

Posted on 2001-08-07
5
428 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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…
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.

738 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