Even better :-)
$ weblate help sendtestemail
usage: weblate sendtestemail [-h] [--version] [-v {0,1,2,3}]
[--settings SETTINGS] [--pythonpath PYTHONPATH]
[--traceback] [--no-color] [--managers]
[--admins]
[email [email ...]]
Sends a test email to the email addresses specified as arguments.
On 10/11/2017 02:55 PM, Loic Dachary wrote:
> Hi Michal,
>
> Since weblate is django based, this can be used and should effectively verify
> if weblate is able to send a mail.
>
> $ weblate shell
> (InteractiveConsole)
>>>> from django.core.mail import send_mail
>>>> send_mail('test email', 'hello world', '[email protected]',
>>>> ['[email protected]'])
>
> And then one can verify the mail ends up where it should. What do you think ?
>
> Cheers
>
> On 10/10/2017 08:38 PM, Michal Čihař wrote:
>> Hi
>>
>> On Mon, 2017-10-09 at 17:54 +0200, Loic Dachary wrote:
>>> I'd like to write a nagios/icinga test to verify weblate is able to
>>> send mail. It happened a few times that it broke and there was no
>>> notification. So it stayed broken during a few days.
>>>
>>> Is there a way to trigger a mail in a way that can be automated and
>>> is non-destructive ?
>>
>> There is currently no such thing for testing. You can subscribe to any
>> change in the translations and edit it under other account, that would
>> trigger email notification and probably is least intrusive. Same can be
>> achieved with comments...
>>
>
--
Loïc Dachary, Artisan Logiciel Libre
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Weblate mailing list [email protected] https://lists.cihar.com/cgi-bin/mailman/listinfo/weblate
