Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 436
  • Last Modified:

Sending the file attachment via mailx.

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
vitali
Asked:
vitali
1 Solution
 
ahoffmannCommented:
dou you mean:

  echo "http://host.your.dom/downloads/filename.txt"|mailx -s "Subject" address@abc.com
0
 
stan64Commented:
you could try

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

hth
stan
0
 
chris_calabreseCommented:
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
 
tfewsterCommented:
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
 
SpideyModCommented:
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Industry Leaders: 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!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now