comparison src/plugins/plugin_misc_account.py @ 1897:e15c7d71ae76

plugin account: fixed use of {domain} instead of hardcoded libervia.org for welcoming e-mail.
author Goffi <goffi@goffi.org>
date Wed, 09 Mar 2016 11:17:32 +0100
parents 8a5b178ff28b
children 31b8a58cfcf5
comparison
equal deleted inserted replaced
1896:c1fbd47b53bf 1897:e15c7d71ae76
304 if not email: 304 if not email:
305 return d_admin 305 return d_admin
306 306
307 body = (_(u"""Welcome to Libervia, the web interface of Salut à Toi. 307 body = (_(u"""Welcome to Libervia, the web interface of Salut à Toi.
308 308
309 Your account on %(domain)s has been successfully created. This is a demonstration version to show you the current status of the project. It is still under development, please keep it in mind! 309 Your account on {domain} has been successfully created. This is a demonstration version to show you the current status of the project. It is still under development, please keep it in mind!
310 310
311 Here is your connection information: 311 Here is your connection information:
312 312
313 Login on libervia.org: %(profile)s 313 Login on {domain}: {profile}
314 Jabber ID (JID): %(jid_s)s 314 Jabber ID (JID): {jid}
315 Your password has been chosen by yourself during registration. 315 Your password has been chosen by yourself during registration.
316 316
317 In the beginning, you have nobody to talk to. To find some contacts, you may use the users' directory: 317 In the beginning, you have nobody to talk to. To find some contacts, you may use the users' directory:
318 - make yourself visible in "Service / Directory subscription". 318 - make yourself visible in "Service / Directory subscription".
319 - search for people with "Contacts" / Search directory". 319 - search for people with "Contacts" / Search directory".
320 320
321 Any feedback welcome. Thank you! 321 Any feedback welcome. Thank you!
322 322
323 Salut à Toi association 323 Salut à Toi association
324 http://www.salut-a-toi.org 324 http://www.salut-a-toi.org
325 """) % {'profile': profile, 'jid_s': jid_s, 'domain': domain}).encode('utf-8') 325 """).format(profile=profile, jid=jid_s, domain=domain)).encode('utf-8')
326 msg = MIMEText(body, 'plain', 'UTF-8') 326 msg = MIMEText(body, 'plain', 'UTF-8')
327 msg['Subject'] = _(u'Libervia account created') 327 msg['Subject'] = _(u'Libervia account created')
328 msg['From'] = email_from 328 msg['From'] = email_from
329 msg['To'] = email 329 msg['To'] = email
330 330