title: Error throwing while sending an email using laravel
body: <p>Error throwing while sending an email using laravel after migration the web application to a new server. It was working fine on the previous server.</p>
  
  <p><img src="https://i.stack.imgur.com/ZaJae.png" alt="enter image description here"></p>
  
  <p>Relevant error description edited in from comments:</p>
  
  <blockquote>
    <p>[2018-01-25 13:31:10] production.ERROR: ErrorException: mkdir(): No
    such file or directory in
    /var/www/html/jbservice/vendor/swiftmailer/swiftmailer/lib/c‌​lasses/Swift/KeyCach‌​e/Disk$
    Stack trace: #0 [internal function]:
    Illuminate\Foundation\Bootstrap\HandleExceptions->handleErro‌​r(2,
    'mkdir(): No suc...', '/var/www/html/j...', 273, Array) #1
    /var/www/html/jbservice/vendor/swiftmailer/swiftmailer/lib/c‌​lasses/Swift/KeyCach‌​e/DiskKeyCache.php(2‌​73):
    mkdir('/tmp/68d392a3e3...')</p>
  </blockquote>
  
  <p>Relevant code edited from comments:</p>
  
  <pre><code>Mail::send('dashboard.emails.createticket', $data , function ($message) 
  use ($data) { $message-&gt;subject('New Ticket: ' . $data['subject']) 
      -&gt;to("atif@gmail.com") 
      -&gt;from('HERE COMES THE SENDER EMAIL'); });
  </code></pre>