-
Notifications
You must be signed in to change notification settings - Fork 1
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
16 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ Promailer | |
license | ||
reference | ||
|
||
**Promail** is a library for handling emails directly in python. With Promail you can: | ||
**Promail** is a library for extending the functionality of your email box with your own python code. | ||
|
||
------------------ | ||
|
||
|
@@ -18,9 +18,21 @@ Promailer | |
- filter emails in your inbox and run your own python functions based on them | ||
|
||
|
||
**Simple example** :: | ||
>> import | ||
>>> client = | ||
**Simple example** | ||
|
||
Promail's :py:class:`promail.clients.GmailClient` uses Oauth rather than a password to access your email. | ||
You'll be taken to googles Oauth login page which will allow you to log in. | ||
|
||
.. code-block:: python | ||
>>> from promail.clients import GmailClient | ||
>>> client = GmailClient("[email protected]") | ||
>>> my_email.send_email( | ||
recipients="[email protected]", | ||
cc="[email protected]", | ||
subject="My First Promail Email", | ||
htmltext="<h1>Hello World<h1>" | ||
) | ||
Installation | ||
------------ | ||
|
@@ -31,9 +43,4 @@ Promailer can be pip installed: | |
$ pip install promailer | ||
.. code-block:: python | ||
client = GmailClient("[email protected]") | ||
# The first time you do this it will open a web browser allowing you to sign into your google account directly | ||
client.send_email() | ||
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
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