#NEWLINE# def mass_mail_sending_view( request ) : #NEWLINE# #INDENT# m1 = mail . EmailMessage ( 'First Test message' , 'This is the first test email' , 'from@example.com' , [ 'first@example.com' , 'second@example.com' ] ) #NEWLINE# m2 = mail . EmailMessage ( 'Second Test message' , 'This is the second test email' , 'from@example.com' , [ 'second@example.com' , 'third@example.com' ] ) #NEWLINE# c = mail . get_connection ( ) #NEWLINE# c . send_messages ( [ m1 , m2 ] ) #NEWLINE# return HttpResponse ( 'Mail sent' )