Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions appengine/mail/header.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


def send_example_mail(sender_address, email_thread_id):
# [BEGIN send_mail]
# [START send_mail]
mail.send_mail(sender=sender_address,
to="Albert Johnson <[email protected]>",
subject="An example email",
Expand All @@ -28,7 +28,7 @@ def send_example_mail(sender_address, email_thread_id):
The example.com Team
""",
headers={"References": email_thread_id})
# [SEND send_mail]
# [END send_mail]


class SendMailHandler(webapp2.RequestHandler):
Expand Down
4 changes: 2 additions & 2 deletions appengine/mail/send_mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


def send_approved_mail(sender_address):
# [BEGIN send_mail]
# [START send_mail]
mail.send_mail(sender=sender_address,
to="Albert Johnson <[email protected]>",
subject="Your account has been approved",
Expand All @@ -32,7 +32,7 @@ def send_approved_mail(sender_address):

The example.com Team
""")
# [SEND send_mail]
# [END send_mail]


class SendMailHandler(webapp2.RequestHandler):
Expand Down
4 changes: 2 additions & 2 deletions appengine/mail/send_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


def send_approved_mail(sender_address):
# [BEGIN send_message]
# [START send_message]
message = mail.EmailMessage(
sender=sender_address,
subject="Your account has been approved")
Expand All @@ -35,7 +35,7 @@ def send_approved_mail(sender_address):
The example.com Team
"""
message.send()
# [SEND send_message]
# [END send_message]


class SendMessageHandler(webapp2.RequestHandler):
Expand Down