Gentoo Archives: gentoo-user

From: Grant Edwards <grant.b.edwards@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: How to send mail with attachment from a cron job?
Date: Thu, 17 Feb 2011 18:07:09
Message-Id: ijjmam$tci$1@dough.gmane.org
In Reply to: [gentoo-user] How to send mail with attachment from a cron job? by Andrea Momesso
1 On 2011-02-17, Andrea Momesso <momesso.andrea@×××××.com> wrote:
2 > Hi,
3 >
4 > what is the best way to send a mail with a pdf attachment from a cron job?
5 >
6 > The machine is already set up with qmail + vpopmail + dovecot.
7 >
8 > I really don't know where to look for instructions on how to use
9 > qmail-send from a script.
10
11 I'd use mutt:
12
13 echo "Here's an attachment" | mutt -s "cron sending a pdf" -a whatever.pdf -- somebody@×××××××.com
14
15 --
16 Grant Edwards grant.b.edwards Yow! I just heard the
17 at SEVENTIES were over!! And
18 gmail.com I was just getting in touch
19 with my LEISURE SUIT!!