Date: Thu, 08 Dec 2005 16:22:50 +0100 From: freebsd@henriklidstrom.se To: ashley.moran@codeweavers.net Cc: freebsd-questions@freebsd.org Subject: SV: Send emails with attachments from command line Message-ID: <20051208162250.kyxgptdxc4scoog0@mailgw.henriklidstrom.se>
next in thread | raw e-mail | index | archive | help
> -----Ursprungligt meddelande----- > Fr=E5n: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org] F=F6r Ashley Moran > Skickat: den 8 december 2005 16:05 > Till: freebsd-questions@freebsd.org > =C4mne: Re: Send emails with attachments from command line > > On Thursday 08 December 2005 13:35, Igor Robul wrote: > > On Thu, Dec 08, 2005 at 12:16:34PM +0000, Ashley Moran wrote: > > > Does anyone know how to send emails with attachments from the > > > command line? I've replaced sendmail with ssmtp and I can send plain > > > messages with mail, but I don't know how to go about preparing > MIME > > encoded emails. Any pointers? > > > > Look at > > mail/metamail > > > > also "mutt" can send mail with attachments in batch mode. > > > Thanks > > Metamail needs X11 which I don't want on the server, so I've gone with mu= tt. I sometimes use: #uuencode filetosend.ext filetosend.ext | mail -s "File" user@domain.tld But not sure if thats correct. /Henrik
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051208162250.kyxgptdxc4scoog0>