From owner-freebsd-questions Thu Mar 6 9: 0:56 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7408A37B401 for ; Thu, 6 Mar 2003 09:00:55 -0800 (PST) Received: from diana.northnetworks.ca (att-ws20.switchview.com [216.13.70.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id B6B3B43F75 for ; Thu, 6 Mar 2003 09:00:54 -0800 (PST) (envelope-from iaccounts@northnetworks.ca) Received: from localhost (iaccounts@localhost) by diana.northnetworks.ca (8.11.6/8.11.6) with ESMTP id h26H0is09907; Thu, 6 Mar 2003 12:00:44 -0500 (EST) (envelope-from iaccounts@northnetworks.ca) Date: Thu, 6 Mar 2003 12:00:44 -0500 (EST) From: IAccounts To: Brian Henning Cc: freebsd Subject: Re: mail problem In-Reply-To: Message-ID: <20030306115859.M4415-100000@diana.northnetworks.ca> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > i am able to perform the following command fine when i want to send mail on the > local network. > cat input_message.txt | mail -s "hello world" henninb@localhost > > is there a flag that i can pass to mail to tell it to use the proper server for > when i want to perform this operation to an address outside my local network? > cat input_message.txt | mail -s "hello world" b1henning@hotmail.com I've always redirected the file into the mail command as opposed to piping cat results to the mail command. eg: # mail -s "Hello, World!" steve@mydomain.com < input_message.txt Steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message