Skip to content

Commit a460028

Browse files
martinczerwixabbuh
authored andcommitted
Added hints to spool config section
1 parent 5a5e5ac commit a460028

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

cookbook/email/spool.rst

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,17 @@ swiftmailer with the memory option, use the following configuration:
5555
'spool' => array('type' => 'memory')
5656
));
5757
58-
Spool Using a File
58+
.. _spool-using-a-file:
59+
60+
Spool Using Files
5961
------------------
6062

61-
In order to use the spool with a file, use the following configuration:
63+
When you use the filesystem for spooling, Symfony creates a folder in the given
64+
path for each mail service (e.g. "default" for the default service). This folder
65+
will contain files for each email in the spool. So make sure this directory is
66+
writable by Symfony (or your webserver/php)!
67+
68+
In order to use the spool with files, use the following configuration:
6269

6370
.. configuration-block::
6471

@@ -69,7 +76,7 @@ In order to use the spool with a file, use the following configuration:
6976
# ...
7077
spool:
7178
type: file
72-
path: /path/to/spool
79+
path: /path/to/spooldir
7380
7481
.. code-block:: xml
7582
@@ -84,7 +91,7 @@ In order to use the spool with a file, use the following configuration:
8491
<swiftmailer:config>
8592
<swiftmailer:spool
8693
type="file"
87-
path="/path/to/spool"
94+
path="/path/to/spooldir"
8895
/>
8996
</swiftmailer:config>
9097
</container>
@@ -97,7 +104,7 @@ In order to use the spool with a file, use the following configuration:
97104
98105
'spool' => array(
99106
'type' => 'file',
100-
'path' => '/path/to/spool',
107+
'path' => '/path/to/spooldir',
101108
),
102109
));
103110

0 commit comments

Comments
 (0)