[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: batch mode to send an email

From: ken
Subject: Re: batch mode to send an email
Date: Mon, 07 Aug 2006 19:51:28 -0400
User-agent: Thunderbird (X11/20060725)

Trying to get emacs to send an email in batch mode.
Using this code:

(setq send-mail-function 'smtpmail-send-it
      smtpmail-smtp-server "mail.server.tld")

(setq mail-default-headers
      "X-RTFM: Sending Mail; Mail Sending; (smtpmail)Emacs Speaks SMTP\n")

(mail nil "address@hidden" "my favorite subject")

(insert "Blah, blah, blah.\n")


The error I get is:

Wrong number of arguments: #[(arg)
("/usr/share/emacs/21.3/lisp/mail/sendmail.elc" . 21146) nil 2
("/usr/share/emacs/21.3/lisp/mail/sendmail.elc" . 20985) "P"], 0

(all on one line, of course.  My mail client autowraps.)

I comment out  the line ''(mail nil ....)'' and the error goes away.

"C-h f mail" says there can be more args, but doesn't say it must.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]