| |
- Email.Email(builtins.object)
-
- Forger
class Forger(Email.Email) |
|
Forger(mail, titre: str = None, pseudo: str = None, comments: str = None, keywords: list = None, date: datetime.datetime = datetime.datetime(2021, 4, 12, 19, 19, 28, 35123), encrypted: str = None, expires: datetime.datetime = None, importance: int = 0, sensitivity: int = 0, language: list = None, priority: int = 0, add_from: bool = False, default_text: str = 'Default text by PyEmailTools.')
This class can forge an email. |
|
- Method resolution order:
- Forger
- Email.Email
- builtins.object
Methods defined here:
- __init__(self, mail, titre: str = None, pseudo: str = None, comments: str = None, keywords: list = None, date: datetime.datetime = datetime.datetime(2021, 4, 12, 19, 19, 28, 35123), encrypted: str = None, expires: datetime.datetime = None, importance: int = 0, sensitivity: int = 0, language: list = None, priority: int = 0, add_from: bool = False, default_text: str = 'Default text by PyEmailTools.')
- Initialize self. See help(type(self)) for accurate signature.
- add_attachement(self, filename)
- This method add part attachment in email.
- add_image(self, filename, html)
- This method add part in email with image (this image isn't a attachment).
This image must be inside HTML code.
- add_part(self, text, content='plain', add=True)
- This method add a part in email.
- add_recipient(self, email)
- This method add a receiver address.
- make_email(self)
- This method build the email message.
Methods inherited from Email.Email:
- check_email(self, email: str) -> bool
- This method check an email address.
If address is invalid this function log an error message and return None
If address is valid this function return the valid address.
- headers_to_string(self) -> str
- This method return a printable string of email headers.
- part_to_string(self, part) -> str
- This method return string of email part.
- print(self, ips: bool = True, address: bool = True, headers: bool = True, part: bool = False, attachements: bool = False, email: email.message.Message = None) -> None
- This method print a email and extract important informations.
Use it for email analysis.
- save_in_file(self, filename)
- This method save your email in file.
Data descriptors inherited from Email.Email:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
| |