Hi Hongyu,

You have to setup LAVA to send emails, meaning you have to add specific SMTP settings to /etc/lava-server/settings.conf

Please take a look at https://docs.djangoproject.com/en/2.0/topics/email/#quick-example and https://docs.djangoproject.com/en/2.0/ref/settings/#std:setting-EMAIL_HOST those are the listed settings you need to add in order for LAVA to be able to send emails.

Depending on your SMTP server settings you have to add the following variables:
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST - The host to use for sending email.
EMAIL_HOST_USER, EMAIL_HOST_PASSWORD - authentication for the SMTP server
EMAIL_PORT - port to use for the SMTP server
EMAIL_USE_TLS or EMAIL_USE_SSL if your SMTP server uses secure connection you should set one of these to True.

If you don't have and don't want to bring up a SMTP server, alternatively you can use a Google account (not recommended for large volume of notifications) like so:
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = 'yourusernamehere@gmail.com'
EMAIL_HOST_PASSWORD = 'secret'
EMAIL_PORT = 587
EMAIL_USE_TLS = True

HTH,
Cheers


On 02/27/2018 09:01 AM, Xu, Hongyu wrote:

Hi  all, 

 

  Why   I can’t receive the email when I use the ‘User notifications’  in LAVA ?

 

notify:

  criteria:

    status: canceled

  verbosity: quiet

  recipients:

  - to:

     method: email

     email: hongyu.xu@hxt-semitech.com

 

or 

notify:

  criteria:

    status: complete

  verbosity: quiet

  recipients:

  - to:

     user: ‘1680141’

     method: email

 

 

Best Regards

 

XuHongyu

 




This email is intended only for the named addressee. It may contain information that is confidential/private, legally privileged, or copyright-protected, and you should handle it accordingly. If you are not the intended recipient, you do not have legal rights to retain, copy, or distribute this email or its contents, and should promptly delete the email and all electronic copies in your system; do not retain copies in any media. If you have received this email in error, please notify the sender promptly. Thank you.





_______________________________________________
Lava-users mailing list
Lava-users@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lava-users

-- 
Stevan Radaković | LAVA Engineer
Linaro.org <www.linaro.org> │ Open source software for ARM SoCs