Based off the following does the included phpmailer need updated?
On top of that should the included phpmailer be updated to 6 since 5.x is deprecated.
fox
2
this, i think, is the fourth time i have to update this library because of security issues. i think itâs time to ditch it because its author is clearly incapable of writing secure code.
straight up using php mail() should be good enough, i think.
e: iâll rework mail handler to be pluggable and default to mail() if not handled by a plugin.
fox
3
heads up: phpmailer (and by extension old ttrssMailer wrapper) has been removed from trunk.
instead iâve written a tiny mailer class using PHP mail() which should be, in my opinion, good enough for most people.
if you need direct SMTP support within tt-rss read below:
- mailer is pluggable and invokes
PluginHost::HOOK_SEND_MAIL (usage explained in classes/mailer.php)
- later i might make a separate (out of main tree) phpmailer-or-something-else-based plugin for extended SMTP support, but at this point there isnât one, so you might want to hold off updating if you depend on sending mail this way (docker? idk)
- if someone wants to help rewrap phpmailer into a tt-rss plugin, by all means post on the T&P subforum, i would appreciate it
commit: https://git.tt-rss.org/fox/tt-rss/commit/57932e183745bada9c6183056597cb5276f68d10
as usual report all issues here.
How about updating include/sanity_config.php ? 
Iâve tried to submit a push request, but for whatever reason i didnât succeed to push my branch onto git.tt-rss.org. Did anything changed since my last push request (a few monthes ago) ?
Kierun
5
What was the git error you got?
with:
$ cat .git/config
[...]
[remote "tt-rss-ggrandou"]
url = git@git.tt-rss.org:ggrandou/tt-rss.git
fetch = +refs/heads/*:refs/remotes/tt-rss-ggrandou/*
$ git push tt-rss-ggrandou fix_smtp_config:fix_smtp_config
never complete.
but I donât want to hijack the initial threadâŚ
fox
7
youâre likely running into cloudflare
does git over https work? because git over ssh obviously wonât (cloudflare only MITMs https)
yep. git over https works fine.
I has been a long time since the last time I had to use a login/passwd to authenticate myself on a git server 
my pull request is here:
https://git.tt-rss.org/fox/tt-rss/pulls/85
Thanks!
fox
9
there should be a better solution to all this (without exposing git.tt-rss.org) but iâm not really seeing it
proxying gogs ssh through yet another domain just seems stupid
fox
10
going back to original topic, i made a simple SMTP plugin based on latest phpmailer, itâs available here:
https://git.tt-rss.org/fox/ttrss-mailer-smtp
i didnât do a lot of testing but it seems to work
I just updated and wanted to use php-mail (the requirement of php-mail should be made clear in the wiki).
If I am testing with the " Password recovery" function, the current implementation fails with postfix/sendmail[18322]: fatal: www-data(33): No recipient addresses found in message header
If I change $to_address = $params["to_address"]; to $to_address = "myaddress@myhoster.xyz"; it works.
Is this because of the " Password recovery" function or is this a general problem, that the mail address is not fed to the mail function in quotation marks?
fox
12
i have no idea what âphp-mailâ is (a library?), tt-rss stock is using php stock mail() function which uses system MTA. no libraries needed.
nah, thatâs just basically a typo. mailer syntax got updated once and i forgot to update this particular invocation. should be fixed in trunk.
e: https://git.tt-rss.org/fox/tt-rss/commit/79c50359203afef9c04824376368040139fc3402
Yes you are absolutely right, I just installed it, because it did not work at first, so thought this will fix it.
works, thanks!