Email Functions¶
Basic email testing
This module needs building out further, but at the moment can test if the syntax of a given email address is correct.
Classes:
Name | Description |
---|---|
EmailFunctions |
placeholder |
EmailFunctions
¶
Source code in app/dcsp/app/functions/email_functions.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
|
__init__()
¶
Init
Nothing is done in the initialisation phase
Source code in app/dcsp/app/functions/email_functions.py
18 19 20 21 22 23 |
|
valid_syntax(email)
¶
Checks if the syntax of an email string is corrent
This function only checks if the syntax of an email is correct. It does not confirm if the email exists or that the end-server is able to process the email
Parameters:
Name | Type | Description | Default |
---|---|---|---|
email
|
str
|
the email address to be assesed. |
required |
Returns:
Name | Type | Description |
---|---|---|
bool |
bool
|
True if a valid email, otherwise False. |
Source code in app/dcsp/app/functions/email_functions.py
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
|