To finish a message when using the mail command, type a period (.) in the first column and hit Enter.