Why my PC's Public IP Address is shown in the received emails

This issue was raised earlier on Mantis, the bug tracking system https://mantis.phplist.org/view.php?id=17377

The header appears only when you send using the browser as it is the IP address of the current session. But if you send using a cron job then the email will be shown as coming from the server.