المشاريع
عرض على GitHub
pallets-eco/flask-mail
حول
تضيف Flask-Mail إمكانية إرسال البريد عبر SMTP إلى تطبيقات Flask.
الإنتاجية والأتمتةالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- +١
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلFlask-Mail
Flask-Mail is an extension for Flask that makes it easy to send emails from your application. It simplifies the process of integrating email functionality, allowing you to focus on building great features for your application.
Pallets Community Ecosystem
[!IMPORTANT]
This project is part of the Pallets Community Ecosystem. Pallets is the open source organization that maintains Flask; Pallets-Eco enables community maintenance of related projects. If you are interested in helping maintain this project, please reach out on the Pallets Discord server.
A Simple Example
from flask import Flask
from flask_mail import Mail, Message
app = Flask(__name__)
app.config['MAIL_SERVER'] = 'your_mail_server'
app.config['MAIL_PORT'] = 587
app.config['MAIL_USE_TLS'] = True
app.config['MAIL_USE_SSL'] = False
app.config['MAIL_USERNAME'] = 'your_username'
app.config['MAIL_PASSWORD'] = 'your_password'
app.config['MAIL_DEFAULT_SENDER'] = '[email protected]'
mail = Mail(app)
@app.route('/')
def send_email():
msg = Message(
'Hello',
recipients=['[email protected]'],
body='This is a test email sent from Flask-Mail!'
)
mail.send(msg)
return 'Email sent succesfully!'
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…