Skip to content

Commit

Permalink
Merge pull request #23 from marktennyson/development
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
marktennyson authored Dec 30, 2021
2 parents 8296077 + e4777b6 commit 57ad475
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ html = """


@app.post("/email")
async def simple_send() -> JSONResponse:
async def simple_send():

message = Message(
subject="Flask-Mailing module",
Expand Down
10 changes: 5 additions & 5 deletions examples/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion examples/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 57ad475

Please sign in to comment.