bihor / fp_newsletter

TYPO3 plugin for newsletter subscription and unsubscription. Used table: tt_address. A log is written.
https://extensions.typo3.org/extension/fp_newsletter/
GNU General Public License v3.0
7 stars 18 forks source link

mail_active field not enabled after successfully subscription #86

Closed HorstBaumann closed 1 year ago

HorstBaumann commented 1 year ago

typo3 11.5.32 fp_newsletter 4.2.0 mail 2.5.2

the subscription works, but the mail_active (and also the mail_html) field in the new created tt_address-record is unset. how can I set these two fields to checked per default ?

bihor commented 1 year ago

Well, it should work when the new setting html is not -1. settings.html should be 1. This is the code: if ($mode != -1) { $insert['mail_html'] = $mode; $insert['mail_salutation'] = $salutation; $insert['mail_active'] = 1; }

bihor commented 1 year ago

Oh, this works only with fp_newsletter 6.0. If you use TYPO3 11.5 you can not use it. Therefore I must made the version compatible with TYPO3 11.5.

bihor commented 1 year ago

For now I can suggest that you add this lines: $insert['mail_html'] = 1; $insert['mail_active'] = 1; in the function insertInTtAddress in the file Classes/Domain/Repository/LogRepository.php

bihor commented 1 year ago

OK, I made version 6.1.0 compatible with TYPO3 11.5. Maybe you want to test it.