From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: batch mode to send an email
Date: Mon, 07 Aug 2006 17:25:10 -0600 [thread overview]
Message-ID: <eb8i56$ct4$1@sea.gmane.org> (raw)
In-Reply-To: <44D78F5D.8080306@speakeasy.net>
ken wrote:
> Kevin Rodgers wrote:
>>
>> (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 "someuser@somewhere.somedomain" "my favorite subject")
>>
>> (insert "Blah, blah, blah.\n")
>>
>> (mail-send-and-exit)
>>
>
> Kevin,
>
> Thanks very much for your reply. But it didn't work. All I did was
> change the destination email address and the mail server to actual,
> existing values.
>
> The error I got was:
>
> 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 commented out ''(mail nil ....)'' and the error went away.
>
> "C-h f mail" says there can be more args, but doesn't say it must. I'm
> not certain how to fix this line.
Mail accepts anywhere between 0 and 7 arguments:
(mail &optional noerase to subject in-reply-to cc replybuffer actions)
The call above passes 3, so I can't imagine why it is complaining.
--
Kevin
prev parent reply other threads:[~2006-08-07 23:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-07 9:23 batch mode to send an email ken
2006-08-07 15:23 ` Kevin Rodgers
2006-08-07 19:07 ` ken
2006-08-07 23:25 ` Kevin Rodgers [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='eb8i56$ct4$1@sea.gmane.org' \
--to=ihs_4664@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).