Flask- Documentation

Similar documents
django-sendgrid-events Documentation

Flask-SimpleLDAP Documentation

Flask-Sendmail Documentation

flask-jwt Documentation

Flask-Caching Documentation

Django MFA Documentation

Bambu API Documentation

flask-jwt-simple Documentation

django-embed-video Documentation

To Setup your Business id in MacOS X El Capitan Mail (POP) To find MacOS version please visit: Apple Support macos version

Setting Up Apple Mail

django-embed-video Documentation

FAQ 106 How do I access and set up client applications? There are two ways to access a mailbox for sending and receiving messages:

Flask-Twilio Documentation

django mail admin Documentation

Django Synctool Documentation

flask-dynamo Documentation

Zoook e-sale Documentation

django-cron Documentation

Signals Documentation

Gmail Client Documentation

Promgen Documentation

To Setup your Business id in MacOS X El Capitan Mail (POP) To find MacOS version please visit: Apple Support macos version

Flask Slither Documentation

Python Schema Generator Documentation

wagtail-robots Documentation

django-embed-video Documentation

django-oauth2-provider Documentation

django-revproxy Documentation

newauth Documentation

Kiki Documentation. Release 0.7a1. Stephen Burrows

Integration Guide. SecureAuth

Server-side Development using Python and SQL

flask-ldap3-login Documentation

Biostar Central Documentation. Release latest

GMusicProcurator Documentation

nacelle Documentation

Gargoyle Documentation

Alert Configuration on the Cisco WAP121 and WAP321 Access Point

django-ratelimit-backend Documentation

polib Documentation Release David Jean Louis

ejpiaj Documentation Release Marek Wywiał

Flask-Sitemap Documentation

You are just a couple of steps away from your new Sky and Tools powered by Google. next >>

Quick housekeeping Last Two Homeworks Extra Credit for demoing project prototypes Reminder about Project Deadlines/specifics Class on April 12th Resul

django-app-metrics Documentation

Kuyruk Documentation. Release 0. Cenk Altı

Service User Manual. Outlook By SYSCOM (USA) May 2nd, Version 1.0. Outlook 2013 Ver.1.0

alphafilter Documentation

Office 365 User s Guide for Desktop. Office 365 User s Guide for Mobile

Hal Documentation. Release 1.0. Dan Ryan

Flask-Migrate Documentation. Miguel Grinberg

EnterpriseLink and LDAP

The Django Web Framework Part VI

Service User Manual. Outlook By SYSCOM (USA) May 2, Version 2.0. Outlook 2007 Ver. 2.0

django-storages Documentation

Tissu for Fabric Documentation

django-notifier Documentation

django-avatar Documentation

django-private-chat Documentation

CLOUD MAIL End User Guide. (Version 1.0)

django-mongonaut Documentation

RDMO Documentation Documentation

# Application server configuration

RDMO Documentation Documentation

django-auth-ldap Documentation

Building a Django Twilio Programmable Chat Application

django-avatar Documentation

700 Fox Glen Barrington, Illinois ph/fx: [847] Setup Guide

tally Documentation Release Dan Watson

Bootstrap-Flask Documentation

EXPERIENCES MOVING FROM DJANGO TO FLASK

Configure Settings and Customize Notifications on FindIT Network Probe

DCLI User's Guide. Modified on 20 SEP 2018 Data Center Command-Line Interface

LIFX NodeServer Documentation

IMAPClient Documentation

django-intercom Documentation

django-auditlog Documentation

This guide covers the installation, setup, and configuration of Sertifi for Salesforce CPQ.

froide Documentation Release alpha Stefan Wehrmeyer

Psydro Extension Documentation V.2.x

django-auth-ldap Documentation

Mailbox Control Panel

Flask-Assets Documentation

Django Groups Manager Documentation

Twitter and While Loops. April

yagmail Documentation

django-celery Documentation

Release Clearcode < and associates (see AUTHORS)

Writing REST APIs with OpenAPI and Swagger Ada

django-dajax Documentation

smsghussd Documentation

youckan Documentation

NotifySCM Workspace Administration Guide

django-model-report Documentation

Have documentation feedback? Submit a Documentation Feedback support ticket using the Support Wizard on support.air-watch.com.

Online Employer Mobile Application (OE Mobile)

Django Extra Views Documentation

Brewing beer with Python. Chesco

Fasthosts Customer Support Mailbox Control Panel. A walkthrough of the Mailbox Control Panel

Transcription:

Flask-Email Documentation Release 1.4.3 Allan Lei Sep 09, 2017

Contents 1 Installion 3 2 Usage 5 2.1 Sending an Email............................................. 5 2.2 Shortcuts................................................. 6 3 Configuration 7 4 Email Backends 9 4.1 SMTPMail................................................ 9 4.2 FilebasedMail.............................................. 9 4.3 ConsoleMail............................................... 10 4.4 DummyMail............................................... 10 4.5 LocmemMail............................................... 10 5 API 11 6 Extend 13 7 Changelog 15 7.1 Version 1.4.3............................................... 15 8 Notes 17 Python Module Index 19 i

ii

Flask-Email Documentation, Release 1.4.3 Flask-Email is a fork of the core email backends in Django to be used with Flask. In addition there are extra backends that might be useful. Documentation: https://flask-email.readthedocs.org/en/latest/ TODO: Finish documentation Contents 1

Flask-Email Documentation, Release 1.4.3 2 Contents

CHAPTER 1 Installion Install with pip: pip install Flask-Email or install with easy_install: easy_install Flask-Email 3

Flask-Email Documentation, Release 1.4.3 4 Chapter 1. Installion

CHAPTER 2 Usage Instantiate a email backend: from flask import Flask from flask.ext.email import ConsoleMail app = Flask( name ) mailbox = ConsoleMail(app) or initialize it later init_app(): mailbox = ConsoleMail() def create_app(config='settings.cfg'): app = Flask( name ) app.config.from_pyfile(config) mailbox.init_app(app) return app Sending an Email email = EmailMessage( 'Subject', 'Content', 'bounce@example.com', ['to@example.com'], headers={'from': 'from@example.com'} ) email.send(mailbox) 5

Flask-Email Documentation, Release 1.4.3 Shortcuts send_mail('subject', 'Content', 'bounce@example.com', ['to@example.com']) 6 Chapter 2. Usage

CHAPTER 3 Configuration Flask-Email accepts the following settings regardless of email backend DEFAULT_CHARSET Default charset to use for all EmailMessage. Defaults to 'utf-8' DEFAULT_FROM_EMAIL Default email address to use for when the sender parameter not present. Defaults to 'webmaster@localhost' SERVER_EMAIL The email address that messages come from when using mail_admins() and mail_managers() and no sender is provided. Defaults to 'root@localhost' EMAIL_SUBJECT_PREFIX Subject-line prefix for email messages sent with mail_admins() or mail_managers(). You ll probably want to include the trailing space. Defaults to '[Flask] ' ADMINS A tuple following one of the below formats that specifies who should receive messages from mail_admins(). Tuple of name and email: (('John', 'john@example.com'), ('Mary', 'mary@example.com')) Email format name <email>: ('John <john@example.com>', 'Mary <mary@example.com>') Defaults to () (Empty tuple) MANAGERS A tuple in the same format as ADMINS that specifies who should receive messages from mail_managers() Defaults to () (Empty tuple) 7

Flask-Email Documentation, Release 1.4.3 EMAIL_BACKEND The backend to use for sending emails. Defaults to 'flask.ext.email.backends.locmem.mail' 8 Chapter 3. Configuration

CHAPTER 4 Email Backends SMTPMail EMAIL_HOST The host to use for sending email. Defaults to 'localhost' EMAIL_PORT Port to use for the SMTP server defined in EMAIL_HOST. Defaults to 25 EMAIL_HOST_USER Username to use for the SMTP server defined in EMAIL_HOST. If empty, authentication will be skipped. Defaults to '' (Empty string) EMAIL_HOST_PASSWORD Password to use for the SMTP server defined in EMAIL_HOST. This setting is used in conjunction with EMAIL_HOST_USER when authenticating to the SMTP server. If either of these settings is empty, authentication will be skipped. Defaults to '' (Empty string) EMAIL_USE_TLS Whether to use a TLS (secure) connection when talking to the SMTP server. Defaults to False EMAIL_USE_SSL Whether to use a TLS (secure) connection when talking to the SMTP server. Defaults to False FilebasedMail EMAIL_FILE_PATH The directory used by the file email backend to store output files. Defaults to None 9

Flask-Email Documentation, Release 1.4.3 ConsoleMail DummyMail LocmemMail 10 Chapter 4. Email Backends

CHAPTER 5 API 11

Flask-Email Documentation, Release 1.4.3 12 Chapter 5. API

CHAPTER 6 Extend 13

Flask-Email Documentation, Release 1.4.3 14 Chapter 6. Extend

CHAPTER 7 Changelog Version 1.4.3 Released Jan 9, 2013 Initial port of Django 1.4.3 15

Flask-Email Documentation, Release 1.4.3 16 Chapter 7. Changelog

CHAPTER 8 Notes 17

Flask-Email Documentation, Release 1.4.3 18 Chapter 8. Notes

Python Module Index f flask-email, 1 19

Flask-Email Documentation, Release 1.4.3 20 Python Module Index

Index F flask-email (module), 1 21