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

Feature: Test Mail aus Backend versenden #254

Open
ghost opened this issue Apr 12, 2018 · 19 comments
Open

Feature: Test Mail aus Backend versenden #254

ghost opened this issue Apr 12, 2018 · 19 comments
Labels
Milestone

Comments

@ghost
Copy link

ghost commented Apr 12, 2018

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
Copy link
Author

ghost commented Apr 12, 2018

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
Copy link
Author

ghost commented Apr 12, 2018

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
Copy link
Author

ghost commented Apr 12, 2018

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
Copy link
Author

ghost commented Apr 12, 2018

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

Kann ich das Ticket dann zum Manager verschieben?

@ghost
Copy link
Author

ghost commented Apr 12, 2018

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

Ich denke ein neues Ticket mit verweis ist sinnvoller…

@contaoacademy
Copy link

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

@aschempp
Copy link
Member

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

@fritzmg
Copy link
Contributor

fritzmg commented Aug 19, 2021

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

@Toflar
Copy link
Member

Toflar commented Aug 19, 2021

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

@fritzmg
Copy link
Contributor

fritzmg commented Aug 19, 2021

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
Copy link
Member

aschempp commented Mar 4, 2022

Did we get that feature in 4.13 now?

@fritzmg
Copy link
Contributor

fritzmg commented Mar 4, 2022

Nope: contao/contao#3869

@contaoacademy
Copy link

+1 für diese Funktion.

@Toflar
Copy link
Member

Toflar commented Jul 27, 2022

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

@zoglo
Copy link
Member

zoglo commented Jul 6, 2024

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
Copy link
Contributor

fritzmg commented Jul 6, 2024

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

@zoglo
Copy link
Member

zoglo commented Jul 6, 2024

You mean like the install tool... I see

@fritzmg
Copy link
Contributor

fritzmg commented Jul 6, 2024

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
Copy link
Member

aschempp commented Jul 8, 2024

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 #219). Building a UI for every little setting seems kinda hard (but could be at least a temporary solution).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants