File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818
1919
2020def send_example_mail (sender_address , email_thread_id ):
21- # [BEGIN send_mail]
21+ # [START send_mail]
2222 mail .send_mail (sender = sender_address ,
2323 to = "Albert Johnson <Albert.Johnson@example.com>" ,
2424 subject = "An example email" ,
@@ -28,7 +28,7 @@ def send_example_mail(sender_address, email_thread_id):
2828The example.com Team
2929""" ,
3030 headers = {"References" : email_thread_id })
31- # [SEND send_mail]
31+ # [END send_mail]
3232
3333
3434class SendMailHandler (webapp2 .RequestHandler ):
Original file line number Diff line number Diff line change 1818
1919
2020def send_approved_mail (sender_address ):
21- # [BEGIN send_mail]
21+ # [START send_mail]
2222 mail .send_mail (sender = sender_address ,
2323 to = "Albert Johnson <Albert.Johnson@example.com>" ,
2424 subject = "Your account has been approved" ,
@@ -32,7 +32,7 @@ def send_approved_mail(sender_address):
3232
3333The example.com Team
3434""" )
35- # [SEND send_mail]
35+ # [END send_mail]
3636
3737
3838class SendMailHandler (webapp2 .RequestHandler ):
Original file line number Diff line number Diff line change 1818
1919
2020def send_approved_mail (sender_address ):
21- # [BEGIN send_message]
21+ # [START send_message]
2222 message = mail .EmailMessage (
2323 sender = sender_address ,
2424 subject = "Your account has been approved" )
@@ -35,7 +35,7 @@ def send_approved_mail(sender_address):
3535The example.com Team
3636"""
3737 message .send ()
38- # [SEND send_message]
38+ # [END send_message]
3939
4040
4141class SendMessageHandler (webapp2 .RequestHandler ):
You can’t perform that action at this time.
0 commit comments