macOS / binaries /

mailx

/usr/bin/mailx
Send and receive mail

The mail utility is an intelligent mail processing system, which has a command syntax reminiscent of ed with lines replaced by messages.

source: man