NAS542 - send mail from CLI?

Options

is there a solution to send mail from cli;

example: echo TEXT | mail -s SUBJECT dest@whatever.com

Accepted Solution

  • Mijzelf
    Mijzelf Posts: 2,721  Guru Member
    Community MVP First Anniversary 10 Comments Friend Collector
    Answer ✓
    Options

    AFAIK the firmware uses a python script to send mail. But I never looked close enough to it to isolate that function.

    You can install Entware-ng and then install msmtp

All Replies

  • Mijzelf
    Mijzelf Posts: 2,721  Guru Member
    Community MVP First Anniversary 10 Comments Friend Collector
    Answer ✓
    Options

    AFAIK the firmware uses a python script to send mail. But I never looked close enough to it to isolate that function.

    You can install Entware-ng and then install msmtp

  • linuxopa
    linuxopa Posts: 7
    First Comment
    Options

    ok. thanks.

Consumer Product Help Center