contao / contao-manager

Contao Manager
GNU Lesser General Public License v3.0
86 stars 33 forks source link

Feature: Test Mail aus Backend versenden #254

Open ghost opened 6 years ago

ghost commented 6 years ago

Issue by @contaoacademy April 9th, 2018, 13:59 GMT

Es wäre hilfreich, wenn man per Klick eine Test-Mail versenden könnte um zu überprüfen, ob die SMTP-Einstellungen korrekt gesetzt sind bzw. ob der Server die Mails versenden kann.

Kann gerne unter System-Wartung sein oder evtl. ist das auch besser im Contao Manager aufgehoben.

ghost commented 6 years ago

Comment by @Toflar April 9th, 2018, 14:03 GMT

Das müsste in den Manager, weil es eine Kommandozeilen-Operation ist:

vendor/bin/contao-console swiftmailer:email:send --help
ghost commented 6 years ago

Comment by @aschempp April 10th, 2018, 07:05 GMT

Ich hätte etwas bedenken über den Manager freien E-Mail Versand zu erlauben. Würde es reichen wenn eine definierte E-Mail an den Systemadmin versendet werden kann?

ghost commented 6 years ago

Comment by @Toflar April 10th, 2018, 08:02 GMT

Naja, du musst ja eingeloggt sein. Aber vordefiniert einfach als Testmail, ist sicher eine gute Option. Das würde ja die Anforderung abdecken :)

ghost commented 6 years ago

Comment by @leofeyer April 10th, 2018, 10:18 GMT

Kann ich das Ticket dann zum Manager verschieben?

ghost commented 6 years ago

Comment by @aschempp April 10th, 2018, 13:06 GMT

Ich denke ein neues Ticket mit verweis ist sinnvoller…

contaoacademy commented 6 years ago

Vordefinierter Text wäre ausreichend. Button "Teste SMTP" und dann manuell die Zieladresse eingeben.

aschempp commented 3 years ago

@fritzmg is this even still possible in later Contao versions (since we switched from SwiftMailer to Symfony Mailer)?

fritzmg commented 3 years ago

Yeah, unfortunately not, since the symfony/framework-bundle doesn't provide something equivalent :( (though I haven't checked in the recent Symfony versions).

Toflar commented 3 years ago

Maybe work on a PR for Symfony 5.4 then? Also see https://symfony.com/blog/the-end-of-swiftmailer :)

fritzmg commented 3 years ago

Maybe work on a PR for Symfony 5.4 then?

Yes, I always wanted to, but never got around to it 🙈. Hopefully I'll be able to do it in September :)

aschempp commented 2 years ago

Did we get that feature in 4.13 now?

fritzmg commented 2 years ago

Nope: https://github.com/contao/contao/pull/3869

contaoacademy commented 2 years ago

+1 für diese Funktion.

Toflar commented 2 years ago

Symfony 6.2 will ship this command again: https://github.com/symfony/symfony/pull/47040

zoglo commented 4 months ago

Symfony 6.2 will ship this command again: symfony/symfony#47040

I've been thinking that ugrading to at least Symfony 6.2 would allow this feature, however that would also raise the minimum dependency of the Contao Manager to at least "php": ">=8.1".

Since there are still many PHP 7.2 - 8.0 installations, this would lead to the Contao Manager being updated automatically and then no longer being usable.

We could implement the bundle from fritz tho:

fritzmg commented 4 months ago

The Contao Manager does not need to raise its dependencies. It only needs to check whether the mailer:test command is available.

zoglo commented 4 months ago

You mean like the install tool... I see

fritzmg commented 4 months ago

One thing to note though: using mailer:test will bypass the contao.mailer configs, as mailer:test does not actually use the mailer service. It sends the emails directly through the given or default transport.

aschempp commented 4 months ago

Checking for the availability of the command would be easy. However, the Contao Manager currently has no interface/UI for stuff like this (e.g. also applies to https://github.com/contao/contao-manager/issues/219). Building a UI for every little setting seems kinda hard (but could be at least a temporary solution).