Link to home
Start Free TrialLog in
Avatar of vitali
vitali

asked on

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
Avatar of ahoffmann
ahoffmann
Flag of Germany image

dou you mean:

  echo "http://host.your.dom/downloads/filename.txt"|mailx -s "Subject" address@abc.com
Avatar of stan64
stan64

you could try

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

hth
stan
ASKER CERTIFIED SOLUTION
Avatar of chris_calabrese
chris_calabrese

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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 :-)
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange