Return-Path: Delivered-To: apmail-subversion-users-archive@minotaur.apache.org Received: (qmail 6483 invoked from network); 2 Feb 2011 11:27:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Feb 2011 11:27:05 -0000 Received: (qmail 56523 invoked by uid 500); 2 Feb 2011 11:27:05 -0000 Delivered-To: apmail-subversion-users-archive@subversion.apache.org Received: (qmail 56250 invoked by uid 500); 2 Feb 2011 11:27:02 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Received: (qmail 56240 invoked by uid 99); 2 Feb 2011 11:27:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Feb 2011 11:27:02 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of andy.levy@gmail.com designates 209.85.214.43 as permitted sender) Received: from [209.85.214.43] (HELO mail-bw0-f43.google.com) (209.85.214.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Feb 2011 11:26:55 +0000 Received: by bwz14 with SMTP id 14so421693bwz.16 for ; Wed, 02 Feb 2011 03:26:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=FOwrcuJvYhWcjjCkIFRe4Zpt7usL027dz8ghq6W2y/A=; b=GZ4If1om4rBYqbvWEYAcLcvq7iKqoPNgSUlS0wc9kXFplVsv3XQ1Pbl7DcLuM/u4Jb 90AOJzywDUCHfKBwswib2jTgqa+PMHJNCS1hB/h26benSDkbZXy1KrJCQbKGp/y3wAVR U1DyMs0j+AX32W4NI6XvkJoYq0zDNjw1xJ+oo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=Bu3qW+NeUK/mcd+m4fJrRPrBK5K2DIj2Tc0foLSoDB27jJw0jTERxuFWtZvSwxMj2x wi7UOwngyaNGRyTa4sm9YWbUAJYZD2M2DL+hgROX+EynRIKeuSV/5e/eu5RxGK62VP3a Q6mq9H3qvsC+pDjGC6KAjFjqk6MlclRZtAioQ= Received: by 10.204.97.132 with SMTP id l4mr8062912bkn.167.1296645994774; Wed, 02 Feb 2011 03:26:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.204.85.65 with HTTP; Wed, 2 Feb 2011 03:25:53 -0800 (PST) In-Reply-To: <4D490CA4.3030409@acm.org> References: <4D48FE1A.7020000@acm.org> <4D49084F.4060007@acm.org> <4D490CA4.3030409@acm.org> From: Andy Levy Date: Wed, 2 Feb 2011 06:25:53 -0500 Message-ID: Subject: Re: Error on Post Commit Hook.BAT To: David Chapman Cc: Waseem Bokhari , users@subversion.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Feb 2, 2011 at 02:49, David Chapman wrote: > On 2/1/2011 11:36 PM, Waseem Bokhari wrote: > > I am not using any email program But Only using my SMTP SERVER > > > > E:\Repositories\WSBokhari\hooks\send_message.exe %MESSAGE_FILE% %server% > %to% %from% %subj% %auth% > > > > > > Then how would I mention this? > > > > You need to find a program that contacts your SMTP server from the Window= s > command line prompt and sends a message to the server.=A0 You may have on= e > already installed on your machine; if you are defining a repository for a > group of developers you will also need to ensure that it is installed (or= at > least accessible on the search path) on every developer's machine. It's only needed on developer machines if it's a TSVN client-side hook, or the repository is accessed via file:///, which is a really bad idea in a shared environment. > My Subversion installation does not send E-mail to developers and so I do > not know of any programs that send mail to an SMTP server from a Windows > command line prompt.=A0 Perhaps someone else on the list will know.=A0 I = can't > help you further. The best thing to do is skip using BAT files altogether. You can completely eliminate the need for a "send email" program by using a modern Windows scripting environment like Windows Script Host (where you'll use the build-in mail objects) or better yet PowerShell (single cmdlet, send-mailmessage). BAT files are clunky, difficult to both read and write, weak & primitive. Better alternatives have existed for a decade now, but people still cling to them because they haven't bothered to explore what else is out there.