3
$Id: sendmail.scm,v 1.87 2006/06/12 04:19:43 cph Exp $
3
$Id: sendmail.scm,v 1.90 2007/01/05 21:19:24 cph Exp $
5
Copyright 1991,1992,1993,1994,1995,1996 Massachusetts Institute of Technology
6
Copyright 1997,1998,2000,2001,2003,2004 Massachusetts Institute of Technology
7
Copyright 2005,2006 Massachusetts Institute of Technology
5
Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
6
1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
7
2006, 2007 Massachusetts Institute of Technology
9
9
This file is part of MIT/GNU Scheme.
21
21
You should have received a copy of the GNU General Public License
22
22
along with MIT/GNU Scheme; if not, write to the Free Software
23
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
23
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301,
863
863
(define (send-mail-using-sendmail message-pathname lookup-context)
864
864
(message "Sending...")
865
(let ((program (ref-variable sendmail-program lookup-context)))
866
(or (ref-variable sendmail-program lookup-context)
867
(os/sendmail-program))))
866
868
(if (ref-variable mail-interactive lookup-context)
867
869
(call-with-temporary-buffer " sendmail errors"
868
870
(lambda (error-buffer)