One Liner to test php sending mail from a bash script Download this page in PDF formatTo check if your php installation can successfully send emails from a bash script try this : php -r ‘var_dump(mail(“david.saliba@testemail.com”, “test subject”, “test body”));’ Thanks Gareth ! nJoy !