[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[msmtp-users] How to specific the name for the receipt when using the program 'mail' (based on msmtp)?



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' somebody@...45...

Something like the following does not work.

echo 'Message body' | mail -s 'Email subject' 'First Last<somebody@...45...>'

Here is the error message. I am able to receive the email at
somebody@...45..., though. But "First Last" is not shown.

send-mail: recipient address First Last<somebody@...45...> 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