-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
d6caf49
commit 4b45b06
Showing
5 changed files
with
69 additions
and
142 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
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 |
---|---|---|
@@ -1,11 +1,40 @@ | ||
Tutorials | ||
Tutorial | ||
======== | ||
|
||
.. note:: | ||
To install automail please see :ref:`installation <installation>` | ||
|
||
Base usage | ||
========== | ||
|
||
In this section, we will go through some tutorials to show how to use the | ||
``automail`` package, and ``automail``'s command line interface. | ||
Below is a Python script that demonstrates how to send a single email: | ||
|
||
|
||
.. literalinclude:: ../../examples/base-usage.py | ||
:language: python | ||
:end-before: Creating a sender object | ||
|
||
|
||
.. literalinclude:: ../../examples/base-usage.py | ||
:language: python | ||
:start-after: Creating a sender object | ||
:end-before: Set the template | ||
|
||
CLI Usage | ||
--------- | ||
|
||
.. note:: | ||
After installation, you can use the command line tool ``automail`` to send emails. | ||
|
||
For sending emails, you need to do the following steps: | ||
|
||
- register a new process | ||
.. code-block:: bash | ||
$ automail register your-email-address path-to-your-contact-list | ||
There is different sample code and data for each tutorial. The code is | ||
available in the ``automail/tutorials`` directory of the source code | ||
this command will return a process-id, which you will use to start the process. | ||
- start the process | ||
.. code-block:: bash | ||
.. toctree:: | ||
tutorial | ||
$ automail start process-id |
This file was deleted.
Oops, something went wrong.