From owner-freebsd-questions@freebsd.org Sun Oct 8 06:14:09 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3A3E5E28E31 for ; Sun, 8 Oct 2017 06:14:09 +0000 (UTC) (envelope-from pschmehl_lists@tx.rr.com) Received: from dnvrco-cmomta03.email.rr.com (dnvrco-outbound-snat.email.rr.com [107.14.73.231]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A302C6A370 for ; Sun, 8 Oct 2017 06:14:08 +0000 (UTC) (envelope-from pschmehl_lists@tx.rr.com) Received: from [192.168.0.2] ([76.183.153.52]) by cmsmtp with ESMTPA id 14qieYWOTzkqU14qlerA0h; Sun, 08 Oct 2017 06:14:07 +0000 Date: Sun, 08 Oct 2017 01:14:04 -0500 From: Paul Schmehl Reply-To: Paul Schmehl To: freebsd-questions@freebsd.org Subject: Re: Scripting problem Message-ID: <8C8E7D66788801594EC0FC4C@Pauls-MacBook-Pro.local> In-Reply-To: References: <7AB396F429EEB6890100F082@Pauls-MacBook-Pro.local> X-Mailer: Mulberry/4.0.8 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-CMAE-Envelope: MS4wfLbsy/XcuQI2cB1YVlS6ooomvOXNVHXoX4szGqkEZ4sdEq5JCd6P6Rvx3UimdaoIQDQbUbhH6KDJVIsf6HWlmPi7KtsAfWkWZSOrE+c+FaLARkSMytQ4 RLmErb4foYjefcHVjFc+qsWY2CqNgWXTXbfKENtngVDM6mfvgNB8Y/bowt4arZKqLnseSPkn9v5peg== X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Oct 2017 06:14:09 -0000 --On October 8, 2017 at 6:08:51 AM +0000 Manish Jain wrote: > > I do not use mutt (one of the most unfriendly Unix apps) so I cannot > comment on what is the problem here. But I would to suggest one thing to > you for CLI mail : use the port/pkg smtp-cli > > Here is a working sample for mail with attachment (bundled into the bash > shell array att) : > > smtp-cli \ > --ipv4 \ > --auth \ > --server="$SMTP" \ > --port=$PORT \ > --user="$fromaddr" \ > --pass="$password" \ > --from="$fromname <$fromaddr>" \ > --to="$sendto" \ > --subject="$subject" \ > "${att[@]}" > > If this solves your problem, good luck : - ) > I guess I should have pointed out that I'm sending mail on localhost, so there's no auth involved. I'm using mutt because mailx doesn't appear to have the ability to attach files. I solved the problem by using a one word subject. It's weird that Mutt is somehow parsing the words in the subject and using them as recipients. Paul Schmehl, Retired As if it wasn't already obvious, my opinions are my own and not those of my employer. ******************************************* "It is as useless to argue with those who have renounced the use of reason as to administer medication to the dead." Thomas Jefferson "There are some ideas so wrong that only a very intelligent person could believe in them." George Orwell