Change the “From:” address in Unix “mail”

后端 未结 19 2152
萌比男神i
萌比男神i 2020-12-12 14:32

Sending a message from the Unix command line using mail TO_ADDR results in an email from $USER@$HOSTNAME. Is there a way to change the \"From:\" ad

19条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-12 14:59

    echo "test" | mailx -r fake@example.com -s 'test' email@example.com

    It works in OpenBSD.

提交回复
热议问题