From owner-freebsd-questions@FreeBSD.ORG Fri Aug 31 00:19:30 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F69016A480 for ; Fri, 31 Aug 2007 00:19:30 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from mail-out4.apple.com (mail-out4.apple.com [17.254.13.23]) by mx1.freebsd.org (Postfix) with ESMTP id 0724E13C428 for ; Fri, 31 Aug 2007 00:19:29 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from relay11.apple.com (relay11.apple.com [17.128.113.48]) by mail-out4.apple.com (Postfix) with ESMTP id C0A131042987; Thu, 30 Aug 2007 17:19:04 -0700 (PDT) Received: from relay11.apple.com (unknown [127.0.0.1]) by relay11.apple.com (Symantec Mail Security) with ESMTP id A548C28059; Thu, 30 Aug 2007 17:19:04 -0700 (PDT) X-AuditID: 11807130-a71a1bb000006012-e6-46d75e787ca6 Received: from [17.214.13.96] (cswiger1.apple.com [17.214.13.96]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by relay11.apple.com (Symantec Mail Security) with ESMTP id 8413928051; Thu, 30 Aug 2007 17:19:04 -0700 (PDT) In-Reply-To: <551986.10942.qm@web58113.mail.re3.yahoo.com> References: <551986.10942.qm@web58113.mail.re3.yahoo.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <7F3D4980-4827-4877-A33A-E294F7777464@mac.com> Content-Transfer-Encoding: 7bit From: Chuck Swiger Date: Thu, 30 Aug 2007 17:19:04 -0700 To: L Goodwin X-Mailer: Apple Mail (2.752.2) X-Brightmail-Tracker: AAAAAA== Cc: freebsd-questions@freebsd.org Subject: Re: Configuring FreeBSD 6.2 to use sendmail for sending only X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Aug 2007 00:19:30 -0000 On Aug 30, 2007, at 5:01 PM, L Goodwin wrote: > Chuck, I'd prefer to have the script handle the > mailing so I can test the script (with email send) > manually, independent of cron. > > Still looking for specifics on setting this up and a > bourne shell script example that sends an email. > Thanks! I just ran this: ------- #! /bin/sh SENDMAIL=/usr/libexec/sendmail/sendmail rm -f /tmp/$$.msg touch /tmp/$$.msg echo 'From: Chuck ' >> /tmp/$$.msg echo 'To: xrayv19@yahoo.com' >> /tmp/$$.msg echo 'Subject: test message via a shell script' >> /tmp/$$.msg echo >> /tmp/$$.msg echo 'A test message body.' >> /tmp/$$.msg echo >> /tmp/$$.msg cat mailout.sh >> /tmp/$$.msg echo >> /tmp/$$.msg echo '-- ' >> /tmp/$$.msg echo '-Chuck' >> /tmp/$$.msg $SENDMAIL -i -t < /tmp/$$.msg rm /tmp/$$.msg ------- If we're lucky, you just got emailed the content of the script above. :-) -- -Chuck