Gentoo Archives: gentoo-user

From: Andrea Momesso <momesso.andrea@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: How to send mail with attachment from a cron job? [SOLVED]
Date: Thu, 17 Feb 2011 18:09:39
Message-Id: AANLkTi=ULjCa5syD3NMfq98ZoTYrxgDoOQ9S-XpM8S97@mail.gmail.com
1 Yeah, that works great!!
2
3 Thank you!
4
5
6
7 On Thu, Feb 17, 2011 at 6:36 PM, Grant Edwards
8 <grant.b.edwards@×××××.com> wrote:
9 > On 2011-02-17, Andrea Momesso <momesso.andrea@×××××.com> wrote:
10 >> Hi,
11 >>
12 >> what is the best way to send a mail with a pdf attachment from a cron job?
13 >>
14 >> The machine is already set up with qmail + vpopmail + dovecot.
15 >>
16 >> I really don't know where to look for instructions on how to use
17 >> qmail-send from a script.
18 >
19 > I'd use mutt:
20 >
21 >  echo "Here's an attachment" | mutt -s "cron sending a pdf" -a whatever.pdf -- somebody@×××××××.com
22 >
23 > --
24 > Grant Edwards               grant.b.edwards        Yow! I just heard the
25 >                                  at               SEVENTIES were over!!  And
26 >                              gmail.com            I was just getting in touch
27 >                                                   with my LEISURE SUIT!!
28 >
29 >
30 >
31
32
33
34 --
35 TopperH
36 http://topperh.ath.cx