Update python_imap_usage.md
This commit is contained in:
parent
bf79829067
commit
4ea6b12996
@ -68,6 +68,16 @@ except Exception as e:
|
|||||||
## Sending email (requires my AsyncioPath made in other gist):
|
## Sending email (requires my AsyncioPath made in other gist):
|
||||||
|
|
||||||
```
|
```
|
||||||
|
from env import secret
|
||||||
|
import asyncio
|
||||||
|
|
||||||
|
import smtplib
|
||||||
|
from email.mime.text import MIMEText
|
||||||
|
from email.mime.multipart import MIMEMultipart
|
||||||
|
server = None
|
||||||
|
|
||||||
|
logged_in = False
|
||||||
|
|
||||||
class SMTP(AsyncioPatch):
|
class SMTP(AsyncioPatch):
|
||||||
|
|
||||||
def __init__(self, smtp_server, port, sender_email, password):
|
def __init__(self, smtp_server, port, sender_email, password):
|
||||||
|
Loading…
Reference in New Issue
Block a user