I would like to send emails from php but I had issues with PHPMailer and others things I tried. I figured how to do it differently: it\'s working perfectly in the command line (