← Back to team overview

sslug-teknik team mailing list archive

Re: Hvordan sendes en fil med "Mail"?

 

Martin Møller Pedersen wrote:
Hvordan er det nu lige man bruger "mail" funktionen i UNIX / Linux?
Jeg skal sende en fil fra A til B.

På forhånd TAK


Søgning på google: Unix mail send file
gav dette:
Sending files as mail attachments
http://www.shelldorado.com/articles/mailattachments.html

Det ser ud til at være noget i denne retning:
mail B@domain < fil


Det vil ikke virke på binære filer.


Ovennævnte link siger godt nok:
Sending binary files does not work well for the Internet.
og anbefaler at bruge uuencode:
uuencode surfing.jpeg surfing.jpeg | mail sylvia@xxxxxxxx

That's all! If Sylvia uses a current mail reader like Mozilla, Netscape Messenger or Microsoft Exchange, she will see a mail containing just one file attachment: the file "surfing.jpeg". In the command above we had to specify the file name two times: the first name denotes the input file to be encoded, and the second name is the file name the recipient will see.

--
Med venlig hilsen

Jørgen Heesche
mailto:heesche@xxxxxxxxxxx
Registered Linux User #401007


Follow ups

References