One Liner to test php sending mail from a bash script

To 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 :) !

Write a Reply or Comment

Your email address will not be published.