Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Oct 2017 07:17:10 -0400
From:      Baho Utot <baho-utot@columbus.rr.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Scripting problem
Message-ID:  <baf505b7-9f4a-70af-2bbd-82898bb6a47c@columbus.rr.com>
In-Reply-To: <8C8E7D66788801594EC0FC4C@Pauls-MacBook-Pro.local>
References:  <7AB396F429EEB6890100F082@Pauls-MacBook-Pro.local> <VI1PR02MB1200B33C1F59A223B84E9153F6770@VI1PR02MB1200.eurprd02.prod.outlook.com> <8C8E7D66788801594EC0FC4C@Pauls-MacBook-Pro.local>

next in thread | previous in thread | raw e-mail | index | archive | help


On 10/08/17 02:14, Paul Schmehl wrote:
> --On October 8, 2017 at 6:08:51 AM +0000 Manish Jain 
> <bourne.identity@hotmail.com> 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.
> 

In bourne shell quoting is your friend.  Have a look at variable expansion.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?baf505b7-9f4a-70af-2bbd-82898bb6a47c>