Text applications

silver.bullet at zoho.com silver.bullet at zoho.com
Tue Nov 3 21:22:01 UTC 2015


On Tue, 3 Nov 2015 22:15:46 +0100, silver.bullet at zoho.com wrote:
>On Tue, 3 Nov 2015 18:52:24 +0000, Chris Green wrote:
>>On Tue, Nov 03, 2015 at 05:36:04PM +0100, silver.bullet at zoho.com
>>wrote:  
>>> A script using a sendmail replacement such as the easy to handle
>>> msmtp?   
>>I think using a text mode E-Mail program like mutt might be easier.
>>You can send mail using mutt entirely from the command line.  
>
>$ cat some_file.txt | msmtp -a default some.recipient at somewhere.com
>
>$ cat .msmtprc 
># Set default values for all following accounts.
>defaults
>tls_trust_file /etc/ssl/certs/ca-certificates.crt
>logfile ~/.msmtp.log
>
>
>
># Alice
>account spinymouse
>host out.alice-dsl.net
>from ralf.mardorf at alice-dsl.net
>user ralf.mardorf at alice-dsl.net
>#auth         plain
>auth         login
>tls          on
>tls_starttls on
>
>######## !!!!!!!!!!!!
>password ;)
>######## !!!!!!!!!!!!
>
>
>
># Set a default account
>account default : spinymouse

I forgot, a text file could look like this:

  $ cat .msmtp.mail/alice.test.mail
  To: ralf.mardorf at alice-dsl.net
  From: ralf.mardorf at alice-dsl.net
  Subject: Alice msmtp test

  Hi,

  dummy text.

  Regards,
  Me Myself

You are free to add additional headers, e.g. In-Reply-To tec..




More information about the ubuntu-users mailing list