[Flow] TYPO3/SwiftMailer logs messages but does not send it...

Steffen Wickham steffen at gaming-inc.de
Thu Oct 2 21:15:36 CEST 2014


Hi

as Rémy mentioned, settings depends on your settings in php.ini and your
mail server.
To get things working, have a look on the
http://php.net/manual/en/mail.configuration.php page which describes all
options very well. Mostly changing sendmail_path to the correct path
will fix your issue.

Otherwise I suggest using "Swift_SmtpTransport" with login credentials,
as many mail servers require authentication to accept messages. here is
an example of my configuration (just censored my credentials ;) ):

TYPO3:
  SwiftMailer:
    transport:
      type: 'Swift_SmtpTransport'
      options:
        host: 'mail.myserver.de'
        port: '25'
        username: 'noreply at myserver.de'
        password: 'VERYsecurePASSWORD'
#        encryption: 'ssl'
        localDomain: 'myserver.de'


This works on all servers for me without any issues.

Greetings,
Steffen



Am 02.10.2014 21:06, schrieb Rémy DANIEL:
> Hi
>
> You need to check the mail config in php.ini.
> Swift_MailTransport will use the mail() function of php.
>
> Cheers
>
> --
> Rémy
>
> 2014-10-02 18:00 GMT+02:00 Jan Greth <jan at greth.me>:
>
>> Hi at all,
>>
>> I have the following problem with the TYPO3.SwiftMailer Package.
>> Installed it via composer with:
>>
>> [...]
>>    "require": {
>>         [...]
>>         "typo3/swiftmailer": "dev-master",
>>         "swiftmailer/swiftmailer": "5.0.*"
>>     },
>> [...]
>>
>> When I use it with Setting:
>>
>> TYPO3:
>>   SwiftMailer:
>>     transport:
>>       type: 'TYPO3\SwiftMailer\Transport\LoggingTransport'
>>       options: []
>>
>> and Code:
>>
>> $mail = new \TYPO3\SwiftMailer\Message();
>> $mail->setFrom(array('my at email.com' => 'ME'))
>>      ->setTo(array('my at email.com' => 'ME'))
>>      ->setSubject('New comment')
>>      ->setBody('Hallo', 'text/plain');
>> $mail->send();
>>
>> I can find the following in my System log:
>>
>> [...]
>> 14-10-02 13:12:55 7915       DEBUG     SwiftMailer          Sent email to
>> ME <my at email.com>
>>     message => Message-ID: <73689d67072bc274a5b673d06fb09573 at flow>
>> Date: Thu, 02 Oct 2014 13:12:55 +0200
>> Subject: New comment
>> From: ME <my at email.com>
>> To: ME <my at email.com>
>> MIME-Version: 1.0
>> Content-Type: text/plain; charset=utf-8
>> Content-Transfer-Encoding: quoted-printable
>>
>> Hallo
>>
>> [...]
>>
>> But when I switch settings to real sending with Settings yaml:
>> TYPO3:
>>   SwiftMailer:
>>     transport:
>>       type: 'Swift_MailTransport'
>>       arguments: ~
>>       options: []
>>
>> Nothing gets sent. What can be wrong there? The mail adress is my real one
>> in my code.
>> Is there anything else to configure to get mailing to work?
>> Did i miss something?
>>
>> System is Flow 2.2.2 on a Ubuntu Server with PHP5 and MySQL.
>>
>> Greetings, Jan
>> _______________________________________________
>> Flow mailing list
>> Flow at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
>>
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow



More information about the Flow mailing list