From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: How to get Gnus to send multiple emails Date: Wed, 30 Apr 2014 14:29:06 +0200 Message-ID: <87mwf3rofh.fsf@gnu.org> References: <874n1bkuuq.fsf@newcastle.ac.uk> <87fvkvt84v.fsf@gnu.org> <8738gvjbxf.fsf@newcastle.ac.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1398861048 13468 80.91.229.3 (30 Apr 2014 12:30:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Apr 2014 12:30:48 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: phillip.lord@newcastle.ac.uk (Phillip Lord) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 30 14:30:41 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WfTeq-0005p8-3x for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Apr 2014 14:30:40 +0200 Original-Received: from localhost ([::1]:56421 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfTep-0000am-JE for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Apr 2014 08:30:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56248) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfTeM-0000Mx-8l for help-gnu-emacs@gnu.org; Wed, 30 Apr 2014 08:30:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WfTeG-0008N9-Cf for help-gnu-emacs@gnu.org; Wed, 30 Apr 2014 08:30:10 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:44753) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfTeG-0008JH-6U for help-gnu-emacs@gnu.org; Wed, 30 Apr 2014 08:30:04 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 436F71A849A; Wed, 30 Apr 2014 14:30:02 +0200 (CEST) X-Virus-Scanned: amavisd-new at uni-koblenz.de Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8yToItkAFeey; Wed, 30 Apr 2014 14:30:01 +0200 (CEST) X-CHKRCPT: Envelopesender noch tsdh@gnu.org Original-Received: from thinkpad-t440p (dhcp125.uni-koblenz.de [141.26.71.125]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id D85D61A849B; Wed, 30 Apr 2014 14:30:01 +0200 (CEST) In-Reply-To: <8738gvjbxf.fsf@newcastle.ac.uk> (Phillip Lord's message of "Wed, 30 Apr 2014 12:26:20 +0100") User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.4.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 141.26.64.15 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:97477 Archived-At: phillip.lord@newcastle.ac.uk (Phillip Lord) writes: >> will probably not work, but >> >> To: a@y.example, b@y.example, c@y.example > > My experience is that a lot of mailing lists will bounce these, to try > and stop spam. Basically, To: has to be singular and only contain the > mailing list. Ok. >> will do the trick. And if you don't want the receipients to see each >> other's address, then use >> >> Bcc: a@y.example, b@y.example, c@y.example >> >> instead. > > And this also, because the To: field isn't correct. The To: field isn't required. I've just sent a test mail with no To: field and only Bcc: my@addr1.invalid, my@addr2.invalid and the mail was delivered correctly to both addresses. But of course, there might be mailing lists that are configured to bounce messages without To:. > I think that the email has to be sent independently several times with > different To: fields. Ok, then this should do the trick: --8<---------------cut here---------------start------------->8--- (defun th/message-send-and-exit-multiple (addresses) (interactive (list (split-string (read-string "Adresses: ") "," t "[[:space:]]"))) (while addresses (let ((address (car addresses))) (setq addresses (cdr addresses)) (message-remove-header "To") (message-add-header (format "To: %s" address)) (if addresses (message-send) (message-send-and-exit))))) --8<---------------cut here---------------end--------------->8--- Just write your mail without inserting anything in To:, then do `M-x th/message-send-and-exit-multiple' instead of `C-c C-c'. You'll be prompted for a list of email addresses in the format a@x.y, b@x.y, c@x.y, d@x.y After providing that, it'll send 4 separate mails, one to each address. Bye, Tassilo