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

后端 未结 19 2110
萌比男神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.

    0 讨论(0)
提交回复
热议问题