FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python/pythonchallenge/26.py at master · bjd1111/python · GitHub
bjd1111
python
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
python
/
pythonchallenge
/
26.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
14 lines (12 loc) · 390 Bytes
Breadcrumbs
python
/
pythonchallenge
/
26.py
Copy path
File metadata and controls
14 lines (12 loc) · 390 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""
import email, smtplib
apology = email.Message.Message()
apology.add_header('To', 'leopold.moz@pythonchallenge.com')
apology.add_header('From', "your email address")
apology.add_header('Subject', 'Apology')
apology.set_payload('Sorry!')
print apology.as_string()
server = smtplib.SMTP('localhost')
server.sendmail(apology['from'], apology['to'], apology.as_string())
server.quit()
"""
Back
|
FazBrowse Home
|
New Git URL