Skip to content

Commit e67030f

Browse files
committed
minor #5848 Added hints to spool config section (martinczerwi)
This PR was submitted for the 2.7 branch but it was merged into the 2.3 branch instead (closes #5848). Discussion ---------- Added hints to spool config section | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | - The former explanation suggests that a single file is used for spooling, which is not the case of course. But I ran into that problem and since Symfony falls back to memory if the dir is not writable (as it seems) with no error message, this addition might help some people to get spools running. Commits ------- a460028 Added hints to spool config section
2 parents 5a5e5ac + a460028 commit e67030f

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

cookbook/email/spool.rst

+12-5
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)