我正在使用Flask和Flask-Mail建立一個簡單的聯繫頁面。我構建了本教程後的應用程序 - Add a contact page - 現在,當我嘗試發送消息時,我收到了錯誤gaierror: [Errno -2] Name or service not known。我一直在搜索錯誤一段時間,找不到任何類似的例子。我甚至無法弄清楚它找不到什麼名字或服務。 回溯頁面讓我展開一行並執行一些Pyth
with mail.connect() as conn:
for user in selectemail:
message1 = request.form['htmltext']
sender='[email protected]'
subject = "hello, %s " %user[1]
msg = Message(recipients=[user
我在我們的瓶子應用程序中實施了瓶裝郵件,但無法擺脫應用程序用完上下文錯誤。任何幫助,將不勝感激。我已將mail_server參數放置在配置文件中。 /app.py - 應用程序在create_web_apis def create_app(config):
"""Creates an instance of the app according to `config`
:param confi