Ubuntu-14.04 [SOLVED]: How can I change displayed name as sender? Home › Forums › Ubuntu 14.04 › Ubuntu-14.04 [SOLVED]: How can I change displayed name as sender? Tagged: 14.04, email, mail-server Viewing 2 posts - 1 through 2 (of 2 total) Author Posts December 28, 2017 at 2:12 am #36618 Anonymous Question I send email from my server like this: echo "This is the body of the email" | mail -s "This is the subject line" email@example.com Noted that I replace firstname.lastname@example.org with a real email address. And it works. Just I need to know, where this nickname comes from? I use ubuntu 14.04 on the server and I want to know how can I change that name? December 28, 2017 at 2:12 am #36619 Anonymous Answer Don’t use mail, there are better command-line MUAs, such as mailx (package bsd-mailx) or mutt. mailx will do what you want with the -r flag: echo Test. | mailx -r "Joe Sender <email@example.com>" -s Test firstname.lastname@example.org You can likewise specify a display name for the recipient, by the way. The nickname shown in for instance gmail.com comes from the part of the From field that is outside <email@example.com>, so in this example it would be Joe Sender. Source: https://askubuntu.com/questions/988912/how-can-i-change-displayed-name-as-senderAuthor: fkraiemThis work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic.