Skip to content

Commit

Permalink
Merge pull request #16 from kdambekalns/bugfix/mailtransport-is-gone
Browse files Browse the repository at this point in the history
BUGFIX: Replace default Swift_MailTransport with Swift_SendmailTransport
  • Loading branch information
kdambekalns committed Jan 30, 2019
2 parents c841a19 + 360a11d commit 497ad33
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
7 changes: 6 additions & 1 deletion Configuration/Settings.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Neos:
SwiftMailer:
transport:
type: 'Swift_MailTransport'
type: 'Swift_SendmailTransport'
arguments: ~
options: []

Expand All @@ -27,3 +27,8 @@ Neos:
# options:
# mboxPathAndFilename: '%FLOW_PATH_DATA%/Persistent/sent-mail'

# Example settings for "sending" emails to the logs:
#
# SwiftMailer:
# transport:
# type: 'Neos\SwiftMailer\Transport\LoggingTransport'
19 changes: 17 additions & 2 deletions Documentation/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,19 @@ Configuration
-------------

To set up the mail transport to be used, adjust the settings as needed. Without any further
configuration, mails will be sent using ``Swift_MailTransport`` which uses the PHP ``mail()``
function. To use SMTP for sending, follow the following example:
configuration, mails will be sent using ``Swift_SendmailTransport`` which uses ``sendmail``
on the server. To adjust the sendmail command, you can use:

.. code-block:: yaml
Neos:
SwiftMailer:
transport:
type: 'Swift_SendmailTransport'
options:
command: '/usr/sbin/sendmail -bs'
To use SMTP for sending, follow the following example:

.. code-block:: yaml
Expand All @@ -39,6 +50,10 @@ Further transports are available with Swift Mailer and can be used as well. Thei
be looked up the Swift Mailer documentation and they can be set by extrapolating from their
setter method names (as in: ``setUsername()`` becomes ``username`` in the options.)

The ``Swift_MailTransport`` that was available in the past has been removed with the Swift
Mailer library 6.0 release, see https://github.com/swiftmailer/swiftmailer/issues/866 for
background information.

Sending mail
------------

Expand Down

0 comments on commit 497ad33

Please sign in to comment.