title: How to send email using SSMTP through Codeigniter on Ubuntu
body: <p>I am new to SSMTP and Ubuntu, but I have successfully sent emails using the following command:</p>
  
  <p><code>ssmtp -t &lt; temp_email_file</code></p>
  
  <p>Using PHP in Codeigniter, I'm trying to have my controller run the same command. I know this is not the most secure way to do things, but I'm just trying to generate an email to myself when users of our intranet run a script. </p>
  
  <p>I've tried using the following and tried to echo the results, but I receive nothing back:</p>
  
  <pre><code>shell_exec()
  exec()
  system()
  </code></pre>
  
  <p>I'm out of debugging ideas. Any help would be greatly appreciated. Thanks!</p>