Hi, The following command can send an email to somebody. But there is no name associated with the recipient.
echo 'Message body' | mail -s 'Email subject' someb...@example.com Something like the following does not work. echo 'Message body' | mail -s 'Email subject' 'First Last<someb...@example.com>' Here is the error message. I am able to receive the email at someb...@example.com, though. But "First Last" is not shown. send-mail: recipient address First Last<someb...@example.com> not accepted by the server send-mail: server message: 555 5.5.2 Syntax error. x135sm8782271oix.25 - gsmtp send-mail: could not send mail (account default from /home/xxx/.msmtprc) Can't send mail: sendmail process failed with error code 65 I have the following ~/.mailrc. ~$ cat ~/.mailrc set sendmail=/usr/bin/msmtp Does anybody know how to specific the name of the recipient? Thanks. BTW, I use gmail smtp. Could this be due to a limitation of gmail smtp? -- Regards, Peng ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ msmtp-users mailing list msmtp-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/msmtp-users