-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
22 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ def parse_email(email_string: str, email_id: str, output_dir: str = "tmp"): | |
Return: | ||
Email metadata dict: ``dict`` | ||
..code-block:: json | ||
.. code-block:: json | ||
{ | ||
"from": [email protected], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,17 +72,21 @@ def send_message( | |
.. code-block:: json | ||
{'id': '<[email protected]>', | ||
'message': 'Queued. Thank you.'} | ||
{ | ||
'id': '<[email protected]>', | ||
'message': 'Queued. Thank you.' | ||
} | ||
Example: | ||
.. code-block:: python | ||
send_message(None, "[email protected]", | ||
"Docsumo: Automate invoice data capture at Docsumo", 'welcome_email', | ||
files=['/Users/bikramdahal/Downloads/backup_image/savage and palmer/Behariji Enterprises - BE 32 19-20 DONE.pdf']) | ||
send_message("Text, <[email protected]>", | ||
"[email protected]", | ||
"Docsumo: Automate invoice data capture at Docsumo", | ||
"welcome_email", | ||
files=["./data.pdf]) | ||
""" | ||
if text_body: | ||
|
@@ -138,16 +142,20 @@ def send_message_template( | |
.. code-block:: json | ||
{'id': '<[email protected]>', | ||
'message': 'Queued. Thank you.'} | ||
{ | ||
'id': '<[email protected]>', | ||
'message': 'Queued. Thank you.' | ||
} | ||
Example: | ||
.. code-block:: python | ||
send_message_template(None, "[email protected]", | ||
"Docsumo: Automate invoice data capture at Docsumo", 'welcome_email', | ||
send_message_template("Text, <[email protected]>", | ||
"[email protected]", | ||
"Docsumo: Automate invoice data capture at Docsumo", | ||
"welcome_email", | ||
{"company_name": "docsumo", "first_name": "bikram"}) | ||
""" | ||
|
@@ -245,7 +253,7 @@ def mailing_list_add_email(self, list_name: str, data: dict): | |
def mailing_list_delete_email(self, list_name: str, email: str): | ||
|
||
""" | ||
Add user to mailing list | ||
Delete user from mailing list | ||
Args: | ||
list_name: ``str`` | ||
|
@@ -264,7 +272,7 @@ def mailing_list_delete_email(self, list_name: str, email: str): | |
def mailing_list_update_email(self, list_name: str, email: str, data: dict): | ||
|
||
""" | ||
Add user to mailing list | ||
Update user to detail on mailing list | ||
Args: | ||
list_name: ``str`` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters