- try:
- password.encode('ascii')
- except UnicodeEncodeError:
- verrors.add(
- schema,
- 'Only plain text characters (7-bit ASCII) are allowed in passwords. '
- 'UTF or composed characters are not allowed.'
- )
- return verrors
- @accepts(Dict(
- 'mail_message',
- Str('subject', required=True),
- Str('text', max_length=None),
- Str('html', null=True, max_length=None),
- List('to', items=[Str('email')]),
- List('cc', items=[Str('email')]),
- Int('interval', null=True),
- Str('channel', null=True),
- Int('timeout', default=300),
- Bool('attachments', default=False),