def sendCreateUserNotification(notify, body, i=0, count=0):
def _makeSubstitutions(field):
notify[field] = _substituteForUser(notify[field], body[u'primaryEmail'], userName)
notify[field] = notify[field].replace(u'#domain#', domain)
notify[field] = notify[field].replace(u'#givenname#', body[u'name'][u'givenName'])
notify[field] = notify[field].replace(u'#familyname#', body[u'name'][u'familyName'])
notify[field] = notify[field].replace(u'#password#', notify[u'password'])
userName, domain = splitEmailAddress(body[u'primaryEmail'])
if not notify.get(u'subject'):
notify[u'subject'] = Msg.CREATE_USER_NOTIFY_SUBJECT
_makeSubstitutions(u'subject')
if not notify.get(u'message'):
notify[u'message'] = Msg.CREATE_USER_NOTIFY_MESSAGE
_makeSubstitutions(u'message')
send_email(notify[u'subject'], notify[u'message'], notify[u'emailAddress'], i, count)
# gam create user <EmailAddress> <UserAttributes> [notify <EmailAddress>] [subject <String>] [message <String>|(file <FileName> [charset <CharSet>])]
评论列表
文章目录