From owner-freebsd-isp@FreeBSD.ORG Tue Jan 24 02:46:57 2006 Return-Path: X-Original-To: freebsd-isp@freebsd.org Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BB1FF16A41F for ; Tue, 24 Jan 2006 02:46:57 +0000 (GMT) (envelope-from george@galis.org) Received: from sta.galis.org (sta.galis.org [66.250.170.210]) by mx1.FreeBSD.org (Postfix) with SMTP id 2B81143D45 for ; Tue, 24 Jan 2006 02:46:57 +0000 (GMT) (envelope-from george@galis.org) Received: (qmail 9247 invoked by uid 2000); 24 Jan 2006 02:46:56 -0000 From: "George Georgalis" Date: Mon, 23 Jan 2006 21:46:56 -0500 To: freebsd-isp@freebsd.org Message-ID: <20060124024656.GB8617@sta.duo> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: Sending mail to SMTP from command line X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jan 2006 02:46:57 -0000 On Sun, Jan 22, 2006 at 06:03:29PM +0100, Matias Surdi wrote: > >Can some body tell me how can I send a mail from the command line (or a >bash script) to a remote (ISP) SMTP server??? > >I don't want to have my own mta enabled on my host, just send a mail as >I would do from mozilla thunderbird, but from the command line. > mutt is a console (text) email client, it's pretty good, but no built in mta (maybe you can use the "sendmail -q from cron" technique); mutt is the easiest way to send emails with attachments (eg png graphs) from scripts. if you just want to send text, you can pipe a message to "mail" -- but you'll still have to work out the mta thing. of course telnet works too, heh, even for web pages if you speak HTTP! // George -- George Georgalis, systems architect, administrator < http://galis.org/ cell:646-331-2027 mailto:george@galis.org