-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from marktennyson/development
Update README.md
- Loading branch information
Showing
3 changed files
with
7 additions
and
7 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 |
---|---|---|
|
@@ -6,11 +6,11 @@ def create_app(): | |
app = Flask(__name__) | ||
|
||
|
||
app.config['MAIL_USERNAME'] = os.environ['mu'] | ||
app.config['MAIL_PASSWORD'] = os.environ['mp'] | ||
app.config['MAIL_FROM'] = "[email protected]" | ||
app.config['MAIL_PORT'] = os.environ['mport'] | ||
app.config['MAIL_SERVER'] = os.environ['ms'] | ||
app.config['MAIL_USERNAME'] = os.environ['MAIL_USERNAME'] | ||
app.config['MAIL_PASSWORD'] = os.environ['MAIL_PASSWORD'] | ||
# app.config['MAIL_FROM'] = "[email protected]" | ||
app.config['MAIL_PORT'] = os.environ['MAIL_PORT'] | ||
app.config['MAIL_SERVER'] = os.environ['MAIL_HOST'] | ||
app.config['MAIL_USE_TLS'] = True | ||
app.config['MAIL_USE_SSL'] = False | ||
# app.config['MAIL_TEMPLATE_FOLDER'] = Path(__file__).parent / 'attachments' | ||
|
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 |
---|---|---|
|
@@ -31,7 +31,7 @@ async def simple_send() -> jsonify: | |
recipients=[os.environ['MAIL_RECIPIENT']], | ||
body="This is the basic email body", | ||
) | ||
message.add_recipient("[email protected]") | ||
# message.add_recipient("[email protected]") | ||
|
||
|
||
await mail.send_message(message) | ||
|