I have a shell script that send and email using mailx and I was wondering how to completely set the "From" line in the mail message. I know if I use the "-r" flag I can set the actual address (blah@blah.com) but I also want a "real name" in there as well. For example "Joe Smith" with an email address of jsmith@smith.com. I tried the following with the -r flag:
-r "Joe Smith <jsmith@smith.com>"
but it doesn't work. The man page form mailx says that if you set the "postmark" variable that you can set the name. I know if you don't use -r at all it will use what is in the /etc/passwd file in the description field.
Basically, how do I set both the full name and email address?
Greg
-r "Joe Smith <jsmith@smith.com>"
but it doesn't work. The man page form mailx says that if you set the "postmark" variable that you can set the name. I know if you don't use -r at all it will use what is in the /etc/passwd file in the description field.
Basically, how do I set both the full name and email address?
Greg