From owner-freebsd-questions Thu May 31 12:51:41 2001 Delivered-To: freebsd-questions@freebsd.org Received: from freeze.org (www.stelesys.com [208.177.187.226]) by hub.freebsd.org (Postfix) with ESMTP id 5B5B137B422 for ; Thu, 31 May 2001 12:51:38 -0700 (PDT) (envelope-from jim@freeze.org) Received: (from jim@localhost) by freeze.org (8.11.3/8.11.2) id f4VJpTS51825; Thu, 31 May 2001 15:51:29 -0400 (EDT) (envelope-from jim) X-Authentication-Warning: www.stelesys.com: Processed from queue /var/spool/alt_queue X-Authentication-Warning: www.stelesys.com: Processed by jim with -C /web/siteinfo/freeze/mail/sendmail.cf Date: Thu, 31 May 2001 15:51:29 -0400 (EDT) From: Jim Freeze X-X-Sender: To: Eric Boucher Cc: FreeBSD Subject: Re: send e-mail in a plain unix-shell In-Reply-To: Message-ID: 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 On Thu, 31 May 2001, Jim Freeze wrote: > On Thu, 31 May 2001, Eric Boucher wrote: > > > Hi everyone, > > > > Is it possible to send e-mail in a plain unix shell > > with the command line (so without X-server) to the > > internet? Is the command line "mail username" can do > > the trick? If it's possible, how can I do it (with > > which command)? > You can try mail or sendmail. > > sendmail usr@domain.com > Subject: > Type text here. > End with . on first column. Oops, got caught with that . in the first column and my message was prematurely terminated. Also, try sendmail usr@domain.com < file where file is --begin file-- Subject: From: To: Message --end file-- HTH Jim ========================================================= Jim Freeze jim@freeze.org --------------------------------------------------------- No comment at this time. http://www.freeze.org ========================================================= To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message