sudo -u userwhowantshismails mailx <<<$(echo "type 1")

It writes a mbox file into this users home.


This free site is ad-supported. Learn more