How to change sender name (not email address) when using the linux mail command for autosending mail? [closed]

You just need to add a From: header. By default there is none. echo “Test” | mail -a “From: Someone <[email protected]>” [email protected] You can add any custom headers using -a: echo “Test” | mail -a “From: Someone <[email protected]>” \ -a “Subject: This is a test” \ -a “X-Custom-Header: yes” [email protected]

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)