Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 Apr 2005 10:55:04 +0200
From:      =?ISO-8859-1?Q?Erik_N=F8rgaard?= <norgaard@locolomo.org>
To:        Gert Cuykens <gert.cuykens@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: sendmail
Message-ID:  <425100E8.40904@locolomo.org>
In-Reply-To: <ef60af0905040113424be6c8c6@mail.gmail.com>
References:  <ef60af0905033116475d6eff5@mail.gmail.com> <200503312003.10392.wizlayer@gmail.com> <ef60af09050331171747857ec2@mail.gmail.com>	 <424CFF52.10901@locolomo.org> <ef60af0905040113424be6c8c6@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Gert Cuykens wrote:
> On Apr 1, 2005 9:59 AM, Erik Nørgaard <norgaard@locolomo.org> wrote:
>>As everyone else notes, this is not a job for e-mailing. Even if you
>>want to e-mail the file, it is not a job for sendmail. When you send
>>attachments they are typically base64 encoded, this explodes the file
>>from 5.5MB to about 8MB.
>>
>>You can cut it up in two ways: Use transcode to make shorter clips and
>>send separately or convert the file to base64, then cut it up manually
>>and ask your friend to concateneate the attachments and deconvert from
>>base64.
>>
>>The second option is the low tech - transcode is not designed to be user
>>friendly.
>>
>>But, as everyone suggest: Setup anon ftp, an apache webserver, or give
>>ssh access - all of these are faster, simpler and better. This is
>>posible if you are not NAT'ed and have a reasonably fixed ip.

> well i can setup a ftp but then i have to leave my pc on all the time
> , people need to sleep you know and i cant sleep whith
> PRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR in the background. irc wasnt made
> to sent files either and look at it now , its more popular then ftp :)

more popular does not mean better, just more popular.

> So how do i get a movie in my friends mailbox using sentmail ? I was
> thinking in de lines of sendmail -t blabla@blabla.bla -a movie.mpeg -m
> hello.txt -s hello ?

there is a trick you may find handy: "man mail" it tells you all about 
the options and stuff. Then you'll find that something along the lines

  'cat movie.mpeg | mail -s "movie" recipient@somewhere'

will fail, because you first have to convert your movie.mpeg to base64 
and wrap the lines at every 72 characaters.

But otherwise you do something like this:

   'cat <body> | mail -s "subject" recipient@somewhere'

and the format of <body> is described in rfc2822 and others, eg. the 
mime-stuff in rfc2045-2048+/-

Read that, if you still have problems, then ask again.

It still may fail because the recipient won't take large mails, so you 
will have to chop it of as explained in previous mail.

Cheers, Erik
-- 
Ph: +34.666334818                           web: http://www.locolomo.org
S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt
Subject ID:  A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9
Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?425100E8.40904>