Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUGFIX: Replace default Swift_MailTransport with Swift_SendmailTransport #16

Merged
merged 1 commit into from
Jan 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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