Commit fc1a2373 authored by Lauri Himanen's avatar Lauri Himanen
Browse files

Fixed typos in upload email, added some documentation to the mail function,...

Fixed typos in upload email, added some documentation to the mail function, trying out mail configuration in the development cluster.
parent c1d99a7e
Pipeline #79330 failed with stages
in 42 minutes and 56 seconds
......@@ -200,10 +200,10 @@ def check_config():
mail = NomadConfig(
enabled=False,
enabled="true",
with_login=False,
host='',
port=8995,
host='mailrelay.mpcdf.mpg.de',
port=25,
user='',
password='',
from_address='webmaster@nomad-coe.eu',
......
......@@ -433,6 +433,14 @@ def reset(remove: bool):
def send_mail(name: str, email: str, message: str, subject: str):
"""Used to programmatically send mails.
Args:
name: The email recipient name.
email: The email recipient address.
messsage: The email body.
subject: The subject line.
"""
if not config.mail.enabled:
return
......
......@@ -1078,7 +1078,7 @@ class Upload(Proc):
'"%s" ' % self.name if self.name else '', self.upload_time.isoformat()), # pylint: disable=no-member
'You can review your data on your upload page: %s' % config.gui_url(),
'',
'If you encouter any issues with your upload, please let us know and replay to this email.',
'If you encounter any issues with your upload, please let us know and reply to this email.',
'',
'The nomad team'
])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment