taylorotwell/swiftmailer — pull request #2 by joecwallace (2012-04-05 16:31:46+00:00)
Title: Make temp dir user configurable

Added config for the temp directory.

It defaults to ```sys_get_temp_dir()``` everywhere that ```sys_get_temp_dir()``` or ```'/tmp'``` was used, so it should be a transparent change for most users.

The reason for the change is that some hosts (in my case, PHP Fog) don't allow write access to the system's temp dir and instead specify a temp dir for each app. In that case, the following change to ___config/sys.php___ makes the bundle work again:

``` php
return array(
'tmp_dir' => '/path/to/my/special/tmp/dir',
);
```

Let me know if you have any questions.

Joe