
                    order_num          = randGen().upper()

                    Hotel_name         = item.item.title

                    Hotel_price        = item.item.price * 1.20

                    Detail_Full_Name   = item.First_Name + ' ' +  item.Last_Name

                    The_Email          = item.EMail

                    Company_Name       = item.Company_Name

                    The_Nights         = item.Nights 

                    Detail_Tax         = item.get_Tax()

                    Detail_Deposit     = item.get_partial()

                    Detail_total       = item.get_final_price()

                    Number_OF_Guests   = item.Number_OF_Guests 

                    zip                = "zip code" 

                    Phone_Number       = item.Phone_Number

                    Detail_Rest        = int(Detail_total) - int(Detail_Deposit)
 

                    Room_1                          =   item.Room_1
                    first_name_of_guest_NO_1_R1     =   item.first_name_of_guest_NO_1_R1
                    last_name_of_guest_NO_1_R1      =   item.last_name_of_guest_NO_1_R1
                    guest_NO_1_check_in_R1          =   item.guest_NO_1_check_in_R1
                    guest_NO_1_check_out_R1         =   item.guest_NO_1_check_out_R1
                    duration_guest_NO_1_R1          =   item.duration_guest_NO_1_R1
                    first_name_of_guest_NO_2_R1     =   item.first_name_of_guest_NO_2_R1
                    last_name_of_guest_NO_2_R1      =   item.last_name_of_guest_NO_2_R1
                    guest_NO_2_check_in_R1          =   item.guest_NO_2_check_in_R1
                    guest_NO_2_check_out_R1         =   item.guest_NO_2_check_out_R1

                    Room_2                          =   item.Room_2
                    first_name_of_guest_NO_1_R2     =   item.first_name_of_guest_NO_1_R2
                    last_name_of_guest_NO_1_R2      =   item.last_name_of_guest_NO_1_R2
                    guest_NO_1_check_in_R2          =   item.guest_NO_1_check_in_R2
                    guest_NO_1_check_out_R2         =   item.guest_NO_1_check_out_R2
                    first_name_of_guest_NO_2_R2     =   item.first_name_of_guest_NO_2_R2
                    last_name_of_guest_NO_2_R2      =   item.last_name_of_guest_NO_2_R2
                    guest_NO_2_check_in_R2          =   item.guest_NO_2_check_in_R2
                    guest_NO_2_check_out_R2         =   item.guest_NO_2_check_out_R2


                    Room_3                          =   item.Room_3
                    first_name_of_guest_NO_1_R3     =   item.first_name_of_guest_NO_1_R3
                    last_name_of_guest_NO_1_R3      =   item.last_name_of_guest_NO_1_R3
                    guest_NO_1_check_in_R3          =   item.guest_NO_1_check_in_R3
                    guest_NO_1_check_out_R3         =   item.guest_NO_1_check_out_R3
                    first_name_of_guest_NO_2_R3     =   item.first_name_of_guest_NO_2_R3
                    last_name_of_guest_NO_2_R3      =   item.last_name_of_guest_NO_2_R3
                    guest_NO_2_check_in_R3          =   item.guest_NO_2_check_in_R3
                    guest_NO_2_check_out_R3         =   item.guest_NO_2_check_out_R3



                    Room_4                          =  item.Room_4
                    first_name_of_guest_NO_1_R4     =  item.first_name_of_guest_NO_1_R4
                    last_name_of_guest_NO_1_R4      =  item.last_name_of_guest_NO_1_R4
                    guest_NO_1_check_in_R4          =  item.guest_NO_1_check_in_R4
                    guest_NO_1_check_out_R4         =  item.guest_NO_1_check_out_R4
                    first_name_of_guest_NO_2_R4     =  item.first_name_of_guest_NO_2_R4
                    last_name_of_guest_NO_2_R4      =  item.last_name_of_guest_NO_2_R4
                    guest_NO_2_check_in_R4          =  item.guest_NO_2_check_in_R4
                    guest_NO_2_check_out_R4         =  item.guest_NO_2_check_out_R4



                    Room_5                          = item.Room_5
                    first_name_of_guest_NO_1_R5     = item.first_name_of_guest_NO_1_R5
                    last_name_of_guest_NO_1_R5      = item.last_name_of_guest_NO_1_R5
                    guest_NO_1_check_in_R5          = item.guest_NO_1_check_in_R5
                    guest_NO_1_check_out_R5         = item.guest_NO_1_check_out_R5
                    first_name_of_guest_NO_2_R5     = item.first_name_of_guest_NO_2_R5
                    last_name_of_guest_NO_2_R5      = item.last_name_of_guest_NO_2_R5
                    guest_NO_2_check_in_R5          = item.guest_NO_2_check_in_R5
                    guest_NO_2_check_out_R5         = item.guest_NO_2_check_out_R5



                    Room_6                          =   item.Room_6
                    first_name_of_guest_NO_1_R6     =   item.first_name_of_guest_NO_1_R6
                    last_name_of_guest_NO_1_R6      =   item.last_name_of_guest_NO_1_R6
                    guest_NO_1_check_in_R6          =   item.guest_NO_1_check_in_R6
                    guest_NO_1_check_out_R6         =   item.guest_NO_1_check_out_R6
                    first_name_of_guest_NO_2_R6     =   item.first_name_of_guest_NO_2_R6
                    last_name_of_guest_NO_2_R6      =   item.last_name_of_guest_NO_2_R6
                    guest_NO_2_check_in_R6          =   item.guest_NO_2_check_in_R6
                    guest_NO_2_check_out_R6         =   item.guest_NO_2_check_out_R6


                    Room_7                          =   item.Room_7
                    first_name_of_guest_NO_1_R7     =   item.first_name_of_guest_NO_1_R7
                    last_name_of_guest_NO_1_R7      =   item.last_name_of_guest_NO_1_R7
                    guest_NO_1_check_in_R7          =   item.guest_NO_1_check_in_R7
                    guest_NO_1_check_out_R7         =   item.guest_NO_1_check_out_R7
                    first_name_of_guest_NO_2_R7     =   item.first_name_of_guest_NO_2_R7
                    last_name_of_guest_NO_2_R7      =   item.last_name_of_guest_NO_2_R7
                    guest_NO_2_check_in_R7          =   item.guest_NO_2_check_in_R7
                    guest_NO_2_check_out_R7         =   item.guest_NO_2_check_out_R7

                    Room_8                          =   item.Room_8
                    first_name_of_guest_NO_1_R8     =   item.first_name_of_guest_NO_1_R8
                    last_name_of_guest_NO_1_R8      =   item.last_name_of_guest_NO_1_R8
                    guest_NO_1_check_in_R8          =   item.guest_NO_1_check_in_R8
                    guest_NO_1_check_out_R8         =   item.guest_NO_1_check_out_R8
                    first_name_of_guest_NO_2_R8     =   item.first_name_of_guest_NO_2_R8
                    last_name_of_guest_NO_2_R8      =   item.last_name_of_guest_NO_2_R8
                    guest_NO_2_check_in_R8          =   item.guest_NO_2_check_in_R8
                    guest_NO_2_check_out_R8         =   item.guest_NO_2_check_out_R8
                    
                    Room_9                          =   item.Room_9
                    first_name_of_guest_NO_1_R9     =   item.first_name_of_guest_NO_1_R9
                    last_name_of_guest_NO_1_R9      =   item.last_name_of_guest_NO_1_R9
                    guest_NO_1_check_in_R9          =   item.guest_NO_1_check_in_R9
                    guest_NO_1_check_out_R9         =   item.guest_NO_1_check_out_R9
                    first_name_of_guest_NO_2_R9     =   item.first_name_of_guest_NO_2_R9
                    last_name_of_guest_NO_2_R9      =   item.last_name_of_guest_NO_2_R9
                    guest_NO_2_check_in_R9          =   item.guest_NO_2_check_in_R9
                    guest_NO_2_check_out_R9         =   item.guest_NO_2_check_out_R9


                    Room_10                         =   item.Room_10                         
                    first_name_of_guest_NO_1_R10    =   item.first_name_of_guest_NO_1_R10
                    last_name_of_guest_NO_1_R10     =   item.last_name_of_guest_NO_1_R10
                    guest_NO_1_check_in_R10         =   item.guest_NO_1_check_in_R10
                    guest_NO_1_check_out_R10        =   item.guest_NO_1_check_out_R10
                    first_name_of_guest_NO_2_R10    =   item.first_name_of_guest_NO_2_R10
                    last_name_of_guest_NO_2_R10     =   item.last_name_of_guest_NO_2_R10
                    guest_NO_2_check_in_R10         =   item.guest_NO_2_check_in_R10
                    guest_NO_2_check_out_R10        =   item.guest_NO_2_check_out_R10

                    Room_11                         =   item.Room_11
                    first_name_of_guest_NO_1_R11    =   item.first_name_of_guest_NO_1_R11
                    last_name_of_guest_NO_1_R11     =   item.last_name_of_guest_NO_1_R11
                    guest_NO_1_check_in_R11         =   item.guest_NO_1_check_in_R11
                    guest_NO_1_check_out_R11        =   item.guest_NO_1_check_out_R11
                    first_name_of_guest_NO_2_R11    =   item.first_name_of_guest_NO_2_R11
                    last_name_of_guest_NO_2_R11     =   item.last_name_of_guest_NO_2_R11
                    guest_NO_2_check_in_R11         =   item.guest_NO_2_check_in_R11
                    guest_NO_2_check_out_R11        =   item.guest_NO_2_check_out_R11




                    Room_12                         =   item.Room_12
                    first_name_of_guest_NO_1_R12    =   item.first_name_of_guest_NO_1_R12
                    last_name_of_guest_NO_1_R12     =   item.last_name_of_guest_NO_1_R12
                    guest_NO_1_check_in_R12         =   item.guest_NO_1_check_in_R12
                    guest_NO_1_check_out_R12        =   item.guest_NO_1_check_out_R12
                    first_name_of_guest_NO_2_R12    =   item.first_name_of_guest_NO_2_R12
                    last_name_of_guest_NO_2_R12     =   item.last_name_of_guest_NO_2_R12
                    guest_NO_2_check_in_R12         =   item.guest_NO_2_check_in_R12
                    guest_NO_2_check_out_R12        =   item.guest_NO_2_check_out_R12

                    Room_13                         =   item.Room_13
                    first_name_of_guest_NO_1_R13    =   item.first_name_of_guest_NO_1_R13
                    last_name_of_guest_NO_1_R13     =   item.last_name_of_guest_NO_1_R13
                    guest_NO_1_check_in_R13         =   item.guest_NO_1_check_in_R13
                    guest_NO_1_check_out_R13        =   item.guest_NO_1_check_out_R13
                    first_name_of_guest_NO_2_R13    =   item.first_name_of_guest_NO_2_R13
                    last_name_of_guest_NO_2_R13     =   item.last_name_of_guest_NO_2_R13
                    guest_NO_2_check_in_R13         =   item.guest_NO_2_check_in_R13
                    guest_NO_2_check_out_R13        =   item.guest_NO_2_check_out_R13

                    Room_14                         =   item.Room_14
                    first_name_of_guest_NO_1_R14    =   item.first_name_of_guest_NO_1_R14
                    last_name_of_guest_NO_1_R14     =   item.last_name_of_guest_NO_1_R14
                    guest_NO_1_check_in_R14         =   item.guest_NO_1_check_in_R14
                    guest_NO_1_check_out_R14        =   item.guest_NO_1_check_out_R14
                    first_name_of_guest_NO_2_R14    =   item.first_name_of_guest_NO_2_R14
                    last_name_of_guest_NO_2_R14     =   item.last_name_of_guest_NO_2_R14
                    guest_NO_2_check_in_R14         =   item.guest_NO_2_check_in_R14
                    guest_NO_2_check_out_R14        =   item.guest_NO_2_check_out_R14

                    Room_15                         =   item.Room_15
                    first_name_of_guest_NO_1_R15    =   item.first_name_of_guest_NO_1_R15
                    last_name_of_guest_NO_1_R15     =   item.last_name_of_guest_NO_1_R15
                    guest_NO_1_check_in_R15         =   item.guest_NO_1_check_in_R15
                    guest_NO_1_check_out_R15        =   item.guest_NO_1_check_out_R15
                    first_name_of_guest_NO_2_R15    =   item.first_name_of_guest_NO_2_R15
                    last_name_of_guest_NO_2_R15     =   item.last_name_of_guest_NO_2_R15
                    guest_NO_2_check_in_R15         =   item.guest_NO_2_check_in_R15
                    guest_NO_2_check_out_R15        =   item.guest_NO_2_check_out_R15                  



                    Room_16                             =   item.Room_16
                    first_name_of_guest_NO_1_R16        =   item.first_name_of_guest_NO_1_R16
                    last_name_of_guest_NO_1_R16         =   item.last_name_of_guest_NO_1_R16
                    guest_NO_1_check_in_R16             =   item.guest_NO_1_check_in_R16
                    guest_NO_1_check_out_R16            =   item.guest_NO_1_check_out_R16
                    first_name_of_guest_NO_2_R16        =   item.first_name_of_guest_NO_2_R16
                    last_name_of_guest_NO_2_R16         =   item.last_name_of_guest_NO_2_R16
                    guest_NO_2_check_in_R16             =   item.guest_NO_2_check_in_R16
                    guest_NO_2_check_out_R16            =   item.guest_NO_2_check_out_R16

                    Room_17                             =   item.Room_17
                    first_name_of_guest_NO_1_R17        =   item.first_name_of_guest_NO_1_R17
                    last_name_of_guest_NO_1_R17         =   item.last_name_of_guest_NO_1_R17
                    guest_NO_1_check_in_R17             =   item.guest_NO_1_check_in_R17
                    guest_NO_1_check_out_R17            =   item.guest_NO_1_check_out_R17
                    first_name_of_guest_NO_2_R17        =   item.first_name_of_guest_NO_2_R17
                    last_name_of_guest_NO_2_R17         =   item.last_name_of_guest_NO_2_R17
                    guest_NO_2_check_in_R17             =   item.guest_NO_2_check_in_R17
                    guest_NO_2_check_out_R17            =   item.guest_NO_2_check_out_R17

                    Room_18                             =   item.Room_18
                    first_name_of_guest_NO_1_R18        =   item.first_name_of_guest_NO_1_R18
                    last_name_of_guest_NO_1_R18         =   item.last_name_of_guest_NO_1_R18
                    guest_NO_1_check_in_R18             =   item.guest_NO_1_check_in_R18
                    guest_NO_1_check_out_R18            =   item.guest_NO_1_check_out_R18
                    first_name_of_guest_NO_2_R18        =   item.first_name_of_guest_NO_2_R18
                    last_name_of_guest_NO_2_R18         =   item.last_name_of_guest_NO_2_R18
                    guest_NO_2_check_in_R18             =   item.guest_NO_2_check_in_R18
                    guest_NO_2_check_out_R18            =   item.guest_NO_2_check_out_R18

                    Room_19                             =   item.Room_19
                    first_name_of_guest_NO_1_R19        =   item.first_name_of_guest_NO_1_R19
                    last_name_of_guest_NO_1_R19         =   item.last_name_of_guest_NO_1_R19
                    guest_NO_1_check_in_R19             =   item.guest_NO_1_check_in_R19
                    guest_NO_1_check_out_R19            =   item.guest_NO_1_check_out_R19
                    first_name_of_guest_NO_2_R19        =   item.first_name_of_guest_NO_2_R19
                    last_name_of_guest_NO_2_R19         =   item.last_name_of_guest_NO_2_R19
                    guest_NO_2_check_in_R19             =   item.guest_NO_2_check_in_R19
                    guest_NO_2_check_out_R19            =   item.guest_NO_2_check_out_R19

                    Room_20                             =   item.Room_20
                    first_name_of_guest_NO_1_R20        =   item.first_name_of_guest_NO_1_R20
                    last_name_of_guest_NO_1_R20         =   item.last_name_of_guest_NO_1_R20
                    guest_NO_1_check_in_R20             =   item.guest_NO_1_check_in_R20
                    guest_NO_1_check_out_R20            =   item.guest_NO_1_check_out_R20
                    first_name_of_guest_NO_2_R20        =   item.first_name_of_guest_NO_2_R20
                    last_name_of_guest_NO_2_R20         =   item.last_name_of_guest_NO_2_R20
                    guest_NO_2_check_in_R20             =   item.guest_NO_2_check_in_R20
                    guest_NO_2_check_out_R20            =   item.guest_NO_2_check_out_R20                  




                    if item.EMail:


                        template_email = render_to_string('Main/form_template_english.html', {           
                            
                        'Detail_Full_Name':Detail_Full_Name, 'order_num':order_num, 'Detail_Tax':Detail_Tax,'Total':int(Detail_total),'Detail_Rest':int(Detail_Rest), 'Detail_Deposit':int(Detail_Deposit),'Hotel':Hotel_name, 


                        'date_time_var':timezone.localdate(), 'Company_Name':Company_Name, 'customer_tel':Phone_Number,'Hotel_price':Hotel_price,  'zip':zip,  'Number_OF_Guests':Number_OF_Guests, 'Nights':int(The_Nights),

                        'Room_1':Room_1,
                        'first_name_of_guest_NO_1_R1':first_name_of_guest_NO_1_R1,
                        'last_name_of_guest_NO_1_R1':last_name_of_guest_NO_1_R1,
                        'guest_NO_1_check_in_R1':guest_NO_1_check_in_R1,
                        'guest_NO_1_check_out_R1':guest_NO_1_check_out_R1,
                        'duration_guest_NO_1_R1':duration_guest_NO_1_R1,
                        'first_name_of_guest_NO_2_R1':first_name_of_guest_NO_2_R1,
                        'last_name_of_guest_NO_2_R1':last_name_of_guest_NO_2_R1,
                        'guest_NO_2_check_in_R1':guest_NO_2_check_in_R1,
                        'guest_NO_2_check_out_R1':guest_NO_2_check_out_R1,


                        'Room_2' :Room_2,
                        'first_name_of_guest_NO_1_R2' :first_name_of_guest_NO_1_R2,
                        'last_name_of_guest_NO_1_R2' :last_name_of_guest_NO_1_R2,
                        'guest_NO_1_check_in_R2' :guest_NO_1_check_in_R2,
                        'guest_NO_1_check_out_R2' :guest_NO_1_check_out_R2,
                        'first_name_of_guest_NO_2_R2' :first_name_of_guest_NO_2_R2,
                        'last_name_of_guest_NO_2_R2' :last_name_of_guest_NO_2_R2,
                        'guest_NO_2_check_in_R2' :guest_NO_2_check_in_R2,
                        'guest_NO_2_check_out_R2' :guest_NO_2_check_out_R2,
                        'Room_3' :Room_3,
                        'first_name_of_guest_NO_1_R3' :first_name_of_guest_NO_1_R3,
                        'last_name_of_guest_NO_1_R3' :last_name_of_guest_NO_1_R3,
                        'guest_NO_1_check_in_R3' :guest_NO_1_check_in_R3,
                        'guest_NO_1_check_out_R3' :guest_NO_1_check_out_R3,
                        'first_name_of_guest_NO_2_R3' :first_name_of_guest_NO_2_R3,
                        'last_name_of_guest_NO_2_R3' :last_name_of_guest_NO_2_R3,
                        'guest_NO_2_check_in_R3' :guest_NO_2_check_in_R3,
                        'guest_NO_2_check_out_R3' :guest_NO_2_check_out_R3,
                        'Room_4' :Room_4,
                        'first_name_of_guest_NO_1_R4' :first_name_of_guest_NO_1_R4,
                        'last_name_of_guest_NO_1_R4' :last_name_of_guest_NO_1_R4,
                        'guest_NO_1_check_in_R4' :guest_NO_1_check_in_R4,
                        'guest_NO_1_check_out_R4' :guest_NO_1_check_out_R4,
                        'first_name_of_guest_NO_2_R4' :first_name_of_guest_NO_2_R4,
                        'last_name_of_guest_NO_2_R4' :last_name_of_guest_NO_2_R4,
                        'guest_NO_2_check_in_R4' :guest_NO_2_check_in_R4,
                        'guest_NO_2_check_out_R4' :guest_NO_2_check_out_R4,
                        'Room_5' :Room_5,
                        'first_name_of_guest_NO_1_R5' :first_name_of_guest_NO_1_R5,
                        'last_name_of_guest_NO_1_R5' :last_name_of_guest_NO_1_R5,
                        'guest_NO_1_check_in_R5' :guest_NO_1_check_in_R5,
                        'guest_NO_1_check_out_R5' :guest_NO_1_check_out_R5,
                        'first_name_of_guest_NO_2_R5' :first_name_of_guest_NO_2_R5,
                        'last_name_of_guest_NO_2_R5' :last_name_of_guest_NO_2_R5,
                        'guest_NO_2_check_in_R5' :guest_NO_2_check_in_R5,
                        'guest_NO_2_check_out_R5' :guest_NO_2_check_out_R5,
                        'Room_6' :Room_6,
                        'first_name_of_guest_NO_1_R6' :first_name_of_guest_NO_1_R6,
                        'last_name_of_guest_NO_1_R6' :last_name_of_guest_NO_1_R6,
                        'guest_NO_1_check_in_R6' :guest_NO_1_check_in_R6,
                        'guest_NO_1_check_out_R6' :guest_NO_1_check_out_R6,
                        'first_name_of_guest_NO_2_R6' :first_name_of_guest_NO_2_R6,
                        'last_name_of_guest_NO_2_R6' :last_name_of_guest_NO_2_R6,
                        'guest_NO_2_check_in_R6' :guest_NO_2_check_in_R6,
                        'guest_NO_2_check_out_R6' :guest_NO_2_check_out_R6,
                        'Room_7' :Room_7,
                        'first_name_of_guest_NO_1_R7' :first_name_of_guest_NO_1_R7,
                        'last_name_of_guest_NO_1_R7' :last_name_of_guest_NO_1_R7,
                        'guest_NO_1_check_in_R7' :guest_NO_1_check_in_R7,
                        'guest_NO_1_check_out_R7' :guest_NO_1_check_out_R7,
                        'first_name_of_guest_NO_2_R7' :first_name_of_guest_NO_2_R7,
                        'last_name_of_guest_NO_2_R7' :last_name_of_guest_NO_2_R7,
                        'guest_NO_2_check_in_R7' :guest_NO_2_check_in_R7,
                        'guest_NO_2_check_out_R7' :guest_NO_2_check_out_R7,
                        'Room_8':Room_8,
                        'first_name_of_guest_NO_1_R8':first_name_of_guest_NO_1_R8,
                        'last_name_of_guest_NO_1_R8':last_name_of_guest_NO_1_R8,
                        'guest_NO_1_check_in_R8':guest_NO_1_check_in_R8,
                        'guest_NO_1_check_out_R8':guest_NO_1_check_out_R8,
                        'first_name_of_guest_NO_2_R8':first_name_of_guest_NO_2_R8,
                        'last_name_of_guest_NO_2_R8':last_name_of_guest_NO_2_R8,
                        'guest_NO_2_check_in_R8':guest_NO_2_check_in_R8,
                        'guest_NO_2_check_out_R8':guest_NO_2_check_out_R8,
                        'Room_9':Room_9,
                        'first_name_of_guest_NO_1_R9':first_name_of_guest_NO_1_R9,
                        'last_name_of_guest_NO_1_R9':last_name_of_guest_NO_1_R9,
                        'guest_NO_1_check_in_R9':guest_NO_1_check_in_R9,
                        'guest_NO_1_check_out_R9':guest_NO_1_check_out_R9,
                        'first_name_of_guest_NO_2_R9':first_name_of_guest_NO_2_R9,
                        'last_name_of_guest_NO_2_R9':last_name_of_guest_NO_2_R9,
                        'guest_NO_2_check_in_R9':guest_NO_2_check_in_R9,
                        'guest_NO_2_check_out_R9':guest_NO_2_check_out_R9,
                        'Room_10':Room_10,
                        'first_name_of_guest_NO_1_R10':first_name_of_guest_NO_1_R10,
                        'last_name_of_guest_NO_1_R10':last_name_of_guest_NO_1_R10,
                        'guest_NO_1_check_in_R10':guest_NO_1_check_in_R10,
                        'guest_NO_1_check_out_R10':guest_NO_1_check_out_R10,
                        'first_name_of_guest_NO_2_R10':first_name_of_guest_NO_2_R10,
                        'last_name_of_guest_NO_2_R10':last_name_of_guest_NO_2_R10,
                        'guest_NO_2_check_in_R10':guest_NO_2_check_in_R10,
                        'guest_NO_2_check_out_R10':guest_NO_2_check_out_R10,
                        'Room_11':Room_11,
                        'first_name_of_guest_NO_1_R11':first_name_of_guest_NO_1_R11,
                        'last_name_of_guest_NO_1_R11':last_name_of_guest_NO_1_R11,
                        'guest_NO_1_check_in_R11':guest_NO_1_check_in_R11,
                        'guest_NO_1_check_out_R11':guest_NO_1_check_out_R11,
                        'first_name_of_guest_NO_2_R11':first_name_of_guest_NO_2_R11,
                        'last_name_of_guest_NO_2_R11':last_name_of_guest_NO_2_R11,
                        'guest_NO_2_check_in_R11':guest_NO_2_check_in_R11,
                        'guest_NO_2_check_out_R11':guest_NO_2_check_out_R11,
                        'Room_12':Room_12,
                        'first_name_of_guest_NO_1_R12':first_name_of_guest_NO_1_R12,
                        'last_name_of_guest_NO_1_R12':last_name_of_guest_NO_1_R12,
                        'guest_NO_1_check_in_R12':guest_NO_1_check_in_R12,
                        'guest_NO_1_check_out_R12':guest_NO_1_check_out_R12,
                        'first_name_of_guest_NO_2_R12':first_name_of_guest_NO_2_R12,
                        'last_name_of_guest_NO_2_R12':last_name_of_guest_NO_2_R12,
                        'guest_NO_2_check_in_R12':guest_NO_2_check_in_R12,
                        'guest_NO_2_check_out_R12':guest_NO_2_check_out_R12,
                        'Room_13':Room_13,
                        'first_name_of_guest_NO_1_R13':first_name_of_guest_NO_1_R13,
                        'last_name_of_guest_NO_1_R13':last_name_of_guest_NO_1_R13,
                        'guest_NO_1_check_in_R13':guest_NO_1_check_in_R13,
                        'guest_NO_1_check_out_R13':guest_NO_1_check_out_R13,
                        'first_name_of_guest_NO_2_R13':first_name_of_guest_NO_2_R13,
                        'last_name_of_guest_NO_2_R13':last_name_of_guest_NO_2_R13,
                        'guest_NO_2_check_in_R13':guest_NO_2_check_in_R13,
                        'guest_NO_2_check_out_R13':guest_NO_2_check_out_R13,
                        'Room_14':Room_14,
                        'first_name_of_guest_NO_1_R14':first_name_of_guest_NO_1_R14,
                        'last_name_of_guest_NO_1_R14':last_name_of_guest_NO_1_R14,
                        'guest_NO_1_check_in_R14':guest_NO_1_check_in_R14,
                        'guest_NO_1_check_out_R14':guest_NO_1_check_out_R14,
                        'first_name_of_guest_NO_2_R14':first_name_of_guest_NO_2_R14,
                        'last_name_of_guest_NO_2_R14':last_name_of_guest_NO_2_R14,
                        'guest_NO_2_check_in_R14':guest_NO_2_check_in_R14,
                        'guest_NO_2_check_out_R14':guest_NO_2_check_out_R14,
                        'Room_15':Room_15,
                        'first_name_of_guest_NO_1_R15':first_name_of_guest_NO_1_R15,
                        'last_name_of_guest_NO_1_R15':last_name_of_guest_NO_1_R15,
                        'guest_NO_1_check_in_R15':guest_NO_1_check_in_R15,
                        'guest_NO_1_check_out_R15':guest_NO_1_check_out_R15,
                        'first_name_of_guest_NO_2_R15':first_name_of_guest_NO_2_R15,
                        'last_name_of_guest_NO_2_R15':last_name_of_guest_NO_2_R15,
                        'guest_NO_2_check_in_R15':guest_NO_2_check_in_R15,
                        'guest_NO_2_check_out_R15':guest_NO_2_check_out_R15,
                        'Room_16':Room_16,
                        'first_name_of_guest_NO_1_R16':first_name_of_guest_NO_1_R16,
                        'last_name_of_guest_NO_1_R16':last_name_of_guest_NO_1_R16,
                        'guest_NO_1_check_in_R16':guest_NO_1_check_in_R16,
                        'guest_NO_1_check_out_R16':guest_NO_1_check_out_R16,
                        'first_name_of_guest_NO_2_R16':first_name_of_guest_NO_2_R16,
                        'last_name_of_guest_NO_2_R16':last_name_of_guest_NO_2_R16,
                        'guest_NO_2_check_in_R16':guest_NO_2_check_in_R16,
                        'guest_NO_2_check_out_R16':guest_NO_2_check_out_R16,
                        'Room_17':Room_17,
                        'first_name_of_guest_NO_1_R17':first_name_of_guest_NO_1_R17,
                        'last_name_of_guest_NO_1_R17':last_name_of_guest_NO_1_R17,
                        'guest_NO_1_check_in_R17':guest_NO_1_check_in_R17,
                        'guest_NO_1_check_out_R17':guest_NO_1_check_out_R17,
                        'first_name_of_guest_NO_2_R17':first_name_of_guest_NO_2_R17,
                        'last_name_of_guest_NO_2_R17':last_name_of_guest_NO_2_R17,
                        'guest_NO_2_check_in_R17':guest_NO_2_check_in_R17,
                        'guest_NO_2_check_out_R17':guest_NO_2_check_out_R17,
                        'Room_18':Room_18,
                        'first_name_of_guest_NO_1_R18':first_name_of_guest_NO_1_R18,
                        'last_name_of_guest_NO_1_R18':last_name_of_guest_NO_1_R18,
                        'guest_NO_1_check_in_R18':guest_NO_1_check_in_R18,
                        'guest_NO_1_check_out_R18':guest_NO_1_check_out_R18,
                        'first_name_of_guest_NO_2_R18':first_name_of_guest_NO_2_R18,
                        'last_name_of_guest_NO_2_R18':last_name_of_guest_NO_2_R18,
                        'guest_NO_2_check_in_R18':guest_NO_2_check_in_R18,
                        'guest_NO_2_check_out_R18':guest_NO_2_check_out_R18,
                        'Room_19':Room_19,
                        'first_name_of_guest_NO_1_R19':first_name_of_guest_NO_1_R19,
                        'last_name_of_guest_NO_1_R19':last_name_of_guest_NO_1_R19,
                        'guest_NO_1_check_in_R19':guest_NO_1_check_in_R19,
                        'guest_NO_1_check_out_R19':guest_NO_1_check_out_R19,
                        'first_name_of_guest_NO_2_R19':first_name_of_guest_NO_2_R19,
                        'last_name_of_guest_NO_2_R19':last_name_of_guest_NO_2_R19,
                        'guest_NO_2_check_in_R19':guest_NO_2_check_in_R19,
                        'guest_NO_2_check_out_R19':guest_NO_2_check_out_R19,
                        'Room_20':Room_20,
                        'first_name_of_guest_NO_1_R20':first_name_of_guest_NO_1_R20,
                        'last_name_of_guest_NO_1_R20':last_name_of_guest_NO_1_R20,
                        'guest_NO_1_check_in_R20':guest_NO_1_check_in_R20,
                        'guest_NO_1_check_out_R20':guest_NO_1_check_out_R20,
                        'first_name_of_guest_NO_2_R20':first_name_of_guest_NO_2_R20,
                        'last_name_of_guest_NO_2_R20':last_name_of_guest_NO_2_R20,
                        'guest_NO_2_check_in_R20':guest_NO_2_check_in_R20,
                        'guest_NO_2_check_out_R20':guest_NO_2_check_out_R20,


                        } )















                        me = EmailMessage(

                            'Travencia | Hotel Form',template_email , settings.EMAIL_HOST_USER, [The_Email,'mohamedsaleh902@yahoo.com', 'mojaba808@gmail.com'], 

                        )

                        me.content_subtype = "html"

                        me.fail_silently = False

                        me.send()  









202eaf8f8fb9766a34b6d247f0378051aaa3700c

                    order_num          = randGen().upper()

                    Hotel_name         = item.item.title

                    Hotel_price        = item.item.price * 1.20

                    Detail_Full_Name   = item.First_Name + ' ' +  item.Last_Name

                    The_Email          = item.EMail

                    Company_Name       = item.Company_Name

                    The_Nights         = item.Nights 

                    Detail_Tax         = item.get_Tax()

                    Detail_Deposit     = item.get_partial()

                    Detail_total       = item.get_final_price()

                    Number_OF_Guests   = item.Number_OF_Guests 

                    zip                = "zip code" 

                    Phone_Number       = item.Phone_Number

                    Detail_Rest        = int(Detail_total) - int(Detail_Deposit)
 

                    Room_1                          =   item.Room_1
                    first_name_of_guest_NO_1_R1     =   item.first_name_of_guest_NO_1_R1
                    last_name_of_guest_NO_1_R1      =   item.last_name_of_guest_NO_1_R1
                    guest_NO_1_check_in_R1          =   item.guest_NO_1_check_in_R1
                    guest_NO_1_check_out_R1         =   item.guest_NO_1_check_out_R1
                    duration_guest_NO_1_R1          =   item.duration_guest_NO_1_R1
                    first_name_of_guest_NO_2_R1     =   item.first_name_of_guest_NO_2_R1
                    last_name_of_guest_NO_2_R1      =   item.last_name_of_guest_NO_2_R1
                    guest_NO_2_check_in_R1          =   item.guest_NO_2_check_in_R1
                    guest_NO_2_check_out_R1         =   item.guest_NO_2_check_out_R1

                    Room_2                          =   item.Room_2
                    first_name_of_guest_NO_1_R2     =   item.first_name_of_guest_NO_1_R2
                    last_name_of_guest_NO_1_R2      =   item.last_name_of_guest_NO_1_R2
                    guest_NO_1_check_in_R2          =   item.guest_NO_1_check_in_R2
                    guest_NO_1_check_out_R2         =   item.guest_NO_1_check_out_R2
                    first_name_of_guest_NO_2_R2     =   item.first_name_of_guest_NO_2_R2
                    last_name_of_guest_NO_2_R2      =   item.last_name_of_guest_NO_2_R2
                    guest_NO_2_check_in_R2          =   item.guest_NO_2_check_in_R2
                    guest_NO_2_check_out_R2         =   item.guest_NO_2_check_out_R2


                    Room_3                          =   item.Room_3
                    first_name_of_guest_NO_1_R3     =   item.first_name_of_guest_NO_1_R3
                    last_name_of_guest_NO_1_R3      =   item.last_name_of_guest_NO_1_R3
                    guest_NO_1_check_in_R3          =   item.guest_NO_1_check_in_R3
                    guest_NO_1_check_out_R3         =   item.guest_NO_1_check_out_R3
                    first_name_of_guest_NO_2_R3     =   item.first_name_of_guest_NO_2_R3
                    last_name_of_guest_NO_2_R3      =   item.last_name_of_guest_NO_2_R3
                    guest_NO_2_check_in_R3          =   item.guest_NO_2_check_in_R3
                    guest_NO_2_check_out_R3         =   item.guest_NO_2_check_out_R3



                    Room_4                          =  item.Room_4
                    first_name_of_guest_NO_1_R4     =  item.first_name_of_guest_NO_1_R4
                    last_name_of_guest_NO_1_R4      =  item.last_name_of_guest_NO_1_R4
                    guest_NO_1_check_in_R4          =  item.guest_NO_1_check_in_R4
                    guest_NO_1_check_out_R4         =  item.guest_NO_1_check_out_R4
                    first_name_of_guest_NO_2_R4     =  item.first_name_of_guest_NO_2_R4
                    last_name_of_guest_NO_2_R4      =  item.last_name_of_guest_NO_2_R4
                    guest_NO_2_check_in_R4          =  item.guest_NO_2_check_in_R4
                    guest_NO_2_check_out_R4         =  item.guest_NO_2_check_out_R4



                    Room_5                          = item.Room_5
                    first_name_of_guest_NO_1_R5     = item.first_name_of_guest_NO_1_R5
                    last_name_of_guest_NO_1_R5      = item.last_name_of_guest_NO_1_R5
                    guest_NO_1_check_in_R5          = item.guest_NO_1_check_in_R5
                    guest_NO_1_check_out_R5         = item.guest_NO_1_check_out_R5
                    first_name_of_guest_NO_2_R5     = item.first_name_of_guest_NO_2_R5
                    last_name_of_guest_NO_2_R5      = item.last_name_of_guest_NO_2_R5
                    guest_NO_2_check_in_R5          = item.guest_NO_2_check_in_R5
                    guest_NO_2_check_out_R5         = item.guest_NO_2_check_out_R5



                    Room_6                          =   item.Room_6
                    first_name_of_guest_NO_1_R6     =   item.first_name_of_guest_NO_1_R6
                    last_name_of_guest_NO_1_R6      =   item.last_name_of_guest_NO_1_R6
                    guest_NO_1_check_in_R6          =   item.guest_NO_1_check_in_R6
                    guest_NO_1_check_out_R6         =   item.guest_NO_1_check_out_R6
                    first_name_of_guest_NO_2_R6     =   item.first_name_of_guest_NO_2_R6
                    last_name_of_guest_NO_2_R6      =   item.last_name_of_guest_NO_2_R6
                    guest_NO_2_check_in_R6          =   item.guest_NO_2_check_in_R6
                    guest_NO_2_check_out_R6         =   item.guest_NO_2_check_out_R6


                    Room_7                          =   item.Room_7
                    first_name_of_guest_NO_1_R7     =   item.first_name_of_guest_NO_1_R7
                    last_name_of_guest_NO_1_R7      =   item.last_name_of_guest_NO_1_R7
                    guest_NO_1_check_in_R7          =   item.guest_NO_1_check_in_R7
                    guest_NO_1_check_out_R7         =   item.guest_NO_1_check_out_R7
                    first_name_of_guest_NO_2_R7     =   item.first_name_of_guest_NO_2_R7
                    last_name_of_guest_NO_2_R7      =   item.last_name_of_guest_NO_2_R7
                    guest_NO_2_check_in_R7          =   item.guest_NO_2_check_in_R7
                    guest_NO_2_check_out_R7         =   item.guest_NO_2_check_out_R7

                    Room_8                          =   item.Room_8
                    first_name_of_guest_NO_1_R8     =   item.first_name_of_guest_NO_1_R8
                    last_name_of_guest_NO_1_R8      =   item.last_name_of_guest_NO_1_R8
                    guest_NO_1_check_in_R8          =   item.guest_NO_1_check_in_R8
                    guest_NO_1_check_out_R8         =   item.guest_NO_1_check_out_R8
                    first_name_of_guest_NO_2_R8     =   item.first_name_of_guest_NO_2_R8
                    last_name_of_guest_NO_2_R8      =   item.last_name_of_guest_NO_2_R8
                    guest_NO_2_check_in_R8          =   item.guest_NO_2_check_in_R8
                    guest_NO_2_check_out_R8         =   item.guest_NO_2_check_out_R8
                    
                    Room_9                          =   item.Room_9
                    first_name_of_guest_NO_1_R9     =   item.first_name_of_guest_NO_1_R9
                    last_name_of_guest_NO_1_R9      =   item.last_name_of_guest_NO_1_R9
                    guest_NO_1_check_in_R9          =   item.guest_NO_1_check_in_R9
                    guest_NO_1_check_out_R9         =   item.guest_NO_1_check_out_R9
                    first_name_of_guest_NO_2_R9     =   item.first_name_of_guest_NO_2_R9
                    last_name_of_guest_NO_2_R9      =   item.last_name_of_guest_NO_2_R9
                    guest_NO_2_check_in_R9          =   item.guest_NO_2_check_in_R9
                    guest_NO_2_check_out_R9         =   item.guest_NO_2_check_out_R9


                    Room_10                         =   item.Room_10                         
                    first_name_of_guest_NO_1_R10    =   item.first_name_of_guest_NO_1_R10
                    last_name_of_guest_NO_1_R10     =   item.last_name_of_guest_NO_1_R10
                    guest_NO_1_check_in_R10         =   item.guest_NO_1_check_in_R10
                    guest_NO_1_check_out_R10        =   item.guest_NO_1_check_out_R10
                    first_name_of_guest_NO_2_R10    =   item.first_name_of_guest_NO_2_R10
                    last_name_of_guest_NO_2_R10     =   item.last_name_of_guest_NO_2_R10
                    guest_NO_2_check_in_R10         =   item.guest_NO_2_check_in_R10
                    guest_NO_2_check_out_R10        =   item.guest_NO_2_check_out_R10

                    Room_11                         =   item.Room_11
                    first_name_of_guest_NO_1_R11    =   item.first_name_of_guest_NO_1_R11
                    last_name_of_guest_NO_1_R11     =   item.last_name_of_guest_NO_1_R11
                    guest_NO_1_check_in_R11         =   item.guest_NO_1_check_in_R11
                    guest_NO_1_check_out_R11        =   item.guest_NO_1_check_out_R11
                    first_name_of_guest_NO_2_R11    =   item.first_name_of_guest_NO_2_R11
                    last_name_of_guest_NO_2_R11     =   item.last_name_of_guest_NO_2_R11
                    guest_NO_2_check_in_R11         =   item.guest_NO_2_check_in_R11
                    guest_NO_2_check_out_R11        =   item.guest_NO_2_check_out_R11




                    Room_12                         =   item.Room_12
                    first_name_of_guest_NO_1_R12    =   item.first_name_of_guest_NO_1_R12
                    last_name_of_guest_NO_1_R12     =   item.last_name_of_guest_NO_1_R12
                    guest_NO_1_check_in_R12         =   item.guest_NO_1_check_in_R12
                    guest_NO_1_check_out_R12        =   item.guest_NO_1_check_out_R12
                    first_name_of_guest_NO_2_R12    =   item.first_name_of_guest_NO_2_R12
                    last_name_of_guest_NO_2_R12     =   item.last_name_of_guest_NO_2_R12
                    guest_NO_2_check_in_R12         =   item.guest_NO_2_check_in_R12
                    guest_NO_2_check_out_R12        =   item.guest_NO_2_check_out_R12

                    Room_13                         =   item.Room_13
                    first_name_of_guest_NO_1_R13    =   item.first_name_of_guest_NO_1_R13
                    last_name_of_guest_NO_1_R13     =   item.last_name_of_guest_NO_1_R13
                    guest_NO_1_check_in_R13         =   item.guest_NO_1_check_in_R13
                    guest_NO_1_check_out_R13        =   item.guest_NO_1_check_out_R13
                    first_name_of_guest_NO_2_R13    =   item.first_name_of_guest_NO_2_R13
                    last_name_of_guest_NO_2_R13     =   item.last_name_of_guest_NO_2_R13
                    guest_NO_2_check_in_R13         =   item.guest_NO_2_check_in_R13
                    guest_NO_2_check_out_R13        =   item.guest_NO_2_check_out_R13

                    Room_14                         =   item.Room_14
                    first_name_of_guest_NO_1_R14    =   item.first_name_of_guest_NO_1_R14
                    last_name_of_guest_NO_1_R14     =   item.last_name_of_guest_NO_1_R14
                    guest_NO_1_check_in_R14         =   item.guest_NO_1_check_in_R14
                    guest_NO_1_check_out_R14        =   item.guest_NO_1_check_out_R14
                    first_name_of_guest_NO_2_R14    =   item.first_name_of_guest_NO_2_R14
                    last_name_of_guest_NO_2_R14     =   item.last_name_of_guest_NO_2_R14
                    guest_NO_2_check_in_R14         =   item.guest_NO_2_check_in_R14
                    guest_NO_2_check_out_R14        =   item.guest_NO_2_check_out_R14

                    Room_15                         =   item.Room_15
                    first_name_of_guest_NO_1_R15    =   item.first_name_of_guest_NO_1_R15
                    last_name_of_guest_NO_1_R15     =   item.last_name_of_guest_NO_1_R15
                    guest_NO_1_check_in_R15         =   item.guest_NO_1_check_in_R15
                    guest_NO_1_check_out_R15        =   item.guest_NO_1_check_out_R15
                    first_name_of_guest_NO_2_R15    =   item.first_name_of_guest_NO_2_R15
                    last_name_of_guest_NO_2_R15     =   item.last_name_of_guest_NO_2_R15
                    guest_NO_2_check_in_R15         =   item.guest_NO_2_check_in_R15
                    guest_NO_2_check_out_R15        =   item.guest_NO_2_check_out_R15                  



                    Room_16                             =   item.Room_16
                    first_name_of_guest_NO_1_R16        =   item.first_name_of_guest_NO_1_R16
                    last_name_of_guest_NO_1_R16         =   item.last_name_of_guest_NO_1_R16
                    guest_NO_1_check_in_R16             =   item.guest_NO_1_check_in_R16
                    guest_NO_1_check_out_R16            =   item.guest_NO_1_check_out_R16
                    first_name_of_guest_NO_2_R16        =   item.first_name_of_guest_NO_2_R16
                    last_name_of_guest_NO_2_R16         =   item.last_name_of_guest_NO_2_R16
                    guest_NO_2_check_in_R16             =   item.guest_NO_2_check_in_R16
                    guest_NO_2_check_out_R16            =   item.guest_NO_2_check_out_R16

                    Room_17                             =   item.Room_17
                    first_name_of_guest_NO_1_R17        =   item.first_name_of_guest_NO_1_R17
                    last_name_of_guest_NO_1_R17         =   item.last_name_of_guest_NO_1_R17
                    guest_NO_1_check_in_R17             =   item.guest_NO_1_check_in_R17
                    guest_NO_1_check_out_R17            =   item.guest_NO_1_check_out_R17
                    first_name_of_guest_NO_2_R17        =   item.first_name_of_guest_NO_2_R17
                    last_name_of_guest_NO_2_R17         =   item.last_name_of_guest_NO_2_R17
                    guest_NO_2_check_in_R17             =   item.guest_NO_2_check_in_R17
                    guest_NO_2_check_out_R17            =   item.guest_NO_2_check_out_R17

                    Room_18                             =   item.Room_18
                    first_name_of_guest_NO_1_R18        =   item.first_name_of_guest_NO_1_R18
                    last_name_of_guest_NO_1_R18         =   item.last_name_of_guest_NO_1_R18
                    guest_NO_1_check_in_R18             =   item.guest_NO_1_check_in_R18
                    guest_NO_1_check_out_R18            =   item.guest_NO_1_check_out_R18
                    first_name_of_guest_NO_2_R18        =   item.first_name_of_guest_NO_2_R18
                    last_name_of_guest_NO_2_R18         =   item.last_name_of_guest_NO_2_R18
                    guest_NO_2_check_in_R18             =   item.guest_NO_2_check_in_R18
                    guest_NO_2_check_out_R18            =   item.guest_NO_2_check_out_R18

                    Room_19                             =   item.Room_19
                    first_name_of_guest_NO_1_R19        =   item.first_name_of_guest_NO_1_R19
                    last_name_of_guest_NO_1_R19         =   item.last_name_of_guest_NO_1_R19
                    guest_NO_1_check_in_R19             =   item.guest_NO_1_check_in_R19
                    guest_NO_1_check_out_R19            =   item.guest_NO_1_check_out_R19
                    first_name_of_guest_NO_2_R19        =   item.first_name_of_guest_NO_2_R19
                    last_name_of_guest_NO_2_R19         =   item.last_name_of_guest_NO_2_R19
                    guest_NO_2_check_in_R19             =   item.guest_NO_2_check_in_R19
                    guest_NO_2_check_out_R19            =   item.guest_NO_2_check_out_R19

                    Room_20                             =   item.Room_20
                    first_name_of_guest_NO_1_R20        =   item.first_name_of_guest_NO_1_R20
                    last_name_of_guest_NO_1_R20         =   item.last_name_of_guest_NO_1_R20
                    guest_NO_1_check_in_R20             =   item.guest_NO_1_check_in_R20
                    guest_NO_1_check_out_R20            =   item.guest_NO_1_check_out_R20
                    first_name_of_guest_NO_2_R20        =   item.first_name_of_guest_NO_2_R20
                    last_name_of_guest_NO_2_R20         =   item.last_name_of_guest_NO_2_R20
                    guest_NO_2_check_in_R20             =   item.guest_NO_2_check_in_R20
                    guest_NO_2_check_out_R20            =   item.guest_NO_2_check_out_R20                  




                    if item.EMail:


                        template_email = render_to_string('Main/form_template_english.html', {           
                            
                        'Detail_Full_Name':Detail_Full_Name, 'order_num':order_num, 'Detail_Tax':Detail_Tax,'Total':int(Detail_total),'Detail_Rest':int(Detail_Rest), 'Detail_Deposit':int(Detail_Deposit),'Hotel':Hotel_name, 


                        'date_time_var':timezone.localdate(), 'Company_Name':Company_Name, 'customer_tel':Phone_Number,'Hotel_price':Hotel_price,  'zip':zip,  'Number_OF_Guests':Number_OF_Guests, 'Nights':int(The_Nights),

                        'Room_1':Room_1,
                        'first_name_of_guest_NO_1_R1':first_name_of_guest_NO_1_R1,
                        'last_name_of_guest_NO_1_R1':last_name_of_guest_NO_1_R1,
                        'guest_NO_1_check_in_R1':guest_NO_1_check_in_R1,
                        'guest_NO_1_check_out_R1':guest_NO_1_check_out_R1,
                        'duration_guest_NO_1_R1':duration_guest_NO_1_R1,
                        'first_name_of_guest_NO_2_R1':first_name_of_guest_NO_2_R1,
                        'last_name_of_guest_NO_2_R1':last_name_of_guest_NO_2_R1,
                        'guest_NO_2_check_in_R1':guest_NO_2_check_in_R1,
                        'guest_NO_2_check_out_R1':guest_NO_2_check_out_R1,


                        'Room_2' :Room_2,
                        'first_name_of_guest_NO_1_R2' :first_name_of_guest_NO_1_R2,
                        'last_name_of_guest_NO_1_R2' :last_name_of_guest_NO_1_R2,
                        'guest_NO_1_check_in_R2' :guest_NO_1_check_in_R2,
                        'guest_NO_1_check_out_R2' :guest_NO_1_check_out_R2,
                        'first_name_of_guest_NO_2_R2' :first_name_of_guest_NO_2_R2,
                        'last_name_of_guest_NO_2_R2' :last_name_of_guest_NO_2_R2,
                        'guest_NO_2_check_in_R2' :guest_NO_2_check_in_R2,
                        'guest_NO_2_check_out_R2' :guest_NO_2_check_out_R2,
                        'Room_3' :Room_3,
                        'first_name_of_guest_NO_1_R3' :first_name_of_guest_NO_1_R3,
                        'last_name_of_guest_NO_1_R3' :last_name_of_guest_NO_1_R3,
                        'guest_NO_1_check_in_R3' :guest_NO_1_check_in_R3,
                        'guest_NO_1_check_out_R3' :guest_NO_1_check_out_R3,
                        'first_name_of_guest_NO_2_R3' :first_name_of_guest_NO_2_R3,
                        'last_name_of_guest_NO_2_R3' :last_name_of_guest_NO_2_R3,
                        'guest_NO_2_check_in_R3' :guest_NO_2_check_in_R3,
                        'guest_NO_2_check_out_R3' :guest_NO_2_check_out_R3,
                        'Room_4' :Room_4,
                        'first_name_of_guest_NO_1_R4' :first_name_of_guest_NO_1_R4,
                        'last_name_of_guest_NO_1_R4' :last_name_of_guest_NO_1_R4,
                        'guest_NO_1_check_in_R4' :guest_NO_1_check_in_R4,
                        'guest_NO_1_check_out_R4' :guest_NO_1_check_out_R4,
                        'first_name_of_guest_NO_2_R4' :first_name_of_guest_NO_2_R4,
                        'last_name_of_guest_NO_2_R4' :last_name_of_guest_NO_2_R4,
                        'guest_NO_2_check_in_R4' :guest_NO_2_check_in_R4,
                        'guest_NO_2_check_out_R4' :guest_NO_2_check_out_R4,
                        'Room_5' :Room_5,
                        'first_name_of_guest_NO_1_R5' :first_name_of_guest_NO_1_R5,
                        'last_name_of_guest_NO_1_R5' :last_name_of_guest_NO_1_R5,
                        'guest_NO_1_check_in_R5' :guest_NO_1_check_in_R5,
                        'guest_NO_1_check_out_R5' :guest_NO_1_check_out_R5,
                        'first_name_of_guest_NO_2_R5' :first_name_of_guest_NO_2_R5,
                        'last_name_of_guest_NO_2_R5' :last_name_of_guest_NO_2_R5,
                        'guest_NO_2_check_in_R5' :guest_NO_2_check_in_R5,
                        'guest_NO_2_check_out_R5' :guest_NO_2_check_out_R5,
                        'Room_6' :Room_6,
                        'first_name_of_guest_NO_1_R6' :first_name_of_guest_NO_1_R6,
                        'last_name_of_guest_NO_1_R6' :last_name_of_guest_NO_1_R6,
                        'guest_NO_1_check_in_R6' :guest_NO_1_check_in_R6,
                        'guest_NO_1_check_out_R6' :guest_NO_1_check_out_R6,
                        'first_name_of_guest_NO_2_R6' :first_name_of_guest_NO_2_R6,
                        'last_name_of_guest_NO_2_R6' :last_name_of_guest_NO_2_R6,
                        'guest_NO_2_check_in_R6' :guest_NO_2_check_in_R6,
                        'guest_NO_2_check_out_R6' :guest_NO_2_check_out_R6,
                        'Room_7' :Room_7,
                        'first_name_of_guest_NO_1_R7' :first_name_of_guest_NO_1_R7,
                        'last_name_of_guest_NO_1_R7' :last_name_of_guest_NO_1_R7,
                        'guest_NO_1_check_in_R7' :guest_NO_1_check_in_R7,
                        'guest_NO_1_check_out_R7' :guest_NO_1_check_out_R7,
                        'first_name_of_guest_NO_2_R7' :first_name_of_guest_NO_2_R7,
                        'last_name_of_guest_NO_2_R7' :last_name_of_guest_NO_2_R7,
                        'guest_NO_2_check_in_R7' :guest_NO_2_check_in_R7,
                        'guest_NO_2_check_out_R7' :guest_NO_2_check_out_R7,
                        'Room_8':Room_8,
                        'first_name_of_guest_NO_1_R8':first_name_of_guest_NO_1_R8,
                        'last_name_of_guest_NO_1_R8':last_name_of_guest_NO_1_R8,
                        'guest_NO_1_check_in_R8':guest_NO_1_check_in_R8,
                        'guest_NO_1_check_out_R8':guest_NO_1_check_out_R8,
                        'first_name_of_guest_NO_2_R8':first_name_of_guest_NO_2_R8,
                        'last_name_of_guest_NO_2_R8':last_name_of_guest_NO_2_R8,
                        'guest_NO_2_check_in_R8':guest_NO_2_check_in_R8,
                        'guest_NO_2_check_out_R8':guest_NO_2_check_out_R8,
                        'Room_9':Room_9,
                        'first_name_of_guest_NO_1_R9':first_name_of_guest_NO_1_R9,
                        'last_name_of_guest_NO_1_R9':last_name_of_guest_NO_1_R9,
                        'guest_NO_1_check_in_R9':guest_NO_1_check_in_R9,
                        'guest_NO_1_check_out_R9':guest_NO_1_check_out_R9,
                        'first_name_of_guest_NO_2_R9':first_name_of_guest_NO_2_R9,
                        'last_name_of_guest_NO_2_R9':last_name_of_guest_NO_2_R9,
                        'guest_NO_2_check_in_R9':guest_NO_2_check_in_R9,
                        'guest_NO_2_check_out_R9':guest_NO_2_check_out_R9,
                        'Room_10':Room_10,
                        'first_name_of_guest_NO_1_R10':first_name_of_guest_NO_1_R10,
                        'last_name_of_guest_NO_1_R10':last_name_of_guest_NO_1_R10,
                        'guest_NO_1_check_in_R10':guest_NO_1_check_in_R10,
                        'guest_NO_1_check_out_R10':guest_NO_1_check_out_R10,
                        'first_name_of_guest_NO_2_R10':first_name_of_guest_NO_2_R10,
                        'last_name_of_guest_NO_2_R10':last_name_of_guest_NO_2_R10,
                        'guest_NO_2_check_in_R10':guest_NO_2_check_in_R10,
                        'guest_NO_2_check_out_R10':guest_NO_2_check_out_R10,
                        'Room_11':Room_11,
                        'first_name_of_guest_NO_1_R11':first_name_of_guest_NO_1_R11,
                        'last_name_of_guest_NO_1_R11':last_name_of_guest_NO_1_R11,
                        'guest_NO_1_check_in_R11':guest_NO_1_check_in_R11,
                        'guest_NO_1_check_out_R11':guest_NO_1_check_out_R11,
                        'first_name_of_guest_NO_2_R11':first_name_of_guest_NO_2_R11,
                        'last_name_of_guest_NO_2_R11':last_name_of_guest_NO_2_R11,
                        'guest_NO_2_check_in_R11':guest_NO_2_check_in_R11,
                        'guest_NO_2_check_out_R11':guest_NO_2_check_out_R11,
                        'Room_12':Room_12,
                        'first_name_of_guest_NO_1_R12':first_name_of_guest_NO_1_R12,
                        'last_name_of_guest_NO_1_R12':last_name_of_guest_NO_1_R12,
                        'guest_NO_1_check_in_R12':guest_NO_1_check_in_R12,
                        'guest_NO_1_check_out_R12':guest_NO_1_check_out_R12,
                        'first_name_of_guest_NO_2_R12':first_name_of_guest_NO_2_R12,
                        'last_name_of_guest_NO_2_R12':last_name_of_guest_NO_2_R12,
                        'guest_NO_2_check_in_R12':guest_NO_2_check_in_R12,
                        'guest_NO_2_check_out_R12':guest_NO_2_check_out_R12,
                        'Room_13':Room_13,
                        'first_name_of_guest_NO_1_R13':first_name_of_guest_NO_1_R13,
                        'last_name_of_guest_NO_1_R13':last_name_of_guest_NO_1_R13,
                        'guest_NO_1_check_in_R13':guest_NO_1_check_in_R13,
                        'guest_NO_1_check_out_R13':guest_NO_1_check_out_R13,
                        'first_name_of_guest_NO_2_R13':first_name_of_guest_NO_2_R13,
                        'last_name_of_guest_NO_2_R13':last_name_of_guest_NO_2_R13,
                        'guest_NO_2_check_in_R13':guest_NO_2_check_in_R13,
                        'guest_NO_2_check_out_R13':guest_NO_2_check_out_R13,
                        'Room_14':Room_14,
                        'first_name_of_guest_NO_1_R14':first_name_of_guest_NO_1_R14,
                        'last_name_of_guest_NO_1_R14':last_name_of_guest_NO_1_R14,
                        'guest_NO_1_check_in_R14':guest_NO_1_check_in_R14,
                        'guest_NO_1_check_out_R14':guest_NO_1_check_out_R14,
                        'first_name_of_guest_NO_2_R14':first_name_of_guest_NO_2_R14,
                        'last_name_of_guest_NO_2_R14':last_name_of_guest_NO_2_R14,
                        'guest_NO_2_check_in_R14':guest_NO_2_check_in_R14,
                        'guest_NO_2_check_out_R14':guest_NO_2_check_out_R14,
                        'Room_15':Room_15,
                        'first_name_of_guest_NO_1_R15':first_name_of_guest_NO_1_R15,
                        'last_name_of_guest_NO_1_R15':last_name_of_guest_NO_1_R15,
                        'guest_NO_1_check_in_R15':guest_NO_1_check_in_R15,
                        'guest_NO_1_check_out_R15':guest_NO_1_check_out_R15,
                        'first_name_of_guest_NO_2_R15':first_name_of_guest_NO_2_R15,
                        'last_name_of_guest_NO_2_R15':last_name_of_guest_NO_2_R15,
                        'guest_NO_2_check_in_R15':guest_NO_2_check_in_R15,
                        'guest_NO_2_check_out_R15':guest_NO_2_check_out_R15,
                        'Room_16':Room_16,
                        'first_name_of_guest_NO_1_R16':first_name_of_guest_NO_1_R16,
                        'last_name_of_guest_NO_1_R16':last_name_of_guest_NO_1_R16,
                        'guest_NO_1_check_in_R16':guest_NO_1_check_in_R16,
                        'guest_NO_1_check_out_R16':guest_NO_1_check_out_R16,
                        'first_name_of_guest_NO_2_R16':first_name_of_guest_NO_2_R16,
                        'last_name_of_guest_NO_2_R16':last_name_of_guest_NO_2_R16,
                        'guest_NO_2_check_in_R16':guest_NO_2_check_in_R16,
                        'guest_NO_2_check_out_R16':guest_NO_2_check_out_R16,
                        'Room_17':Room_17,
                        'first_name_of_guest_NO_1_R17':first_name_of_guest_NO_1_R17,
                        'last_name_of_guest_NO_1_R17':last_name_of_guest_NO_1_R17,
                        'guest_NO_1_check_in_R17':guest_NO_1_check_in_R17,
                        'guest_NO_1_check_out_R17':guest_NO_1_check_out_R17,
                        'first_name_of_guest_NO_2_R17':first_name_of_guest_NO_2_R17,
                        'last_name_of_guest_NO_2_R17':last_name_of_guest_NO_2_R17,
                        'guest_NO_2_check_in_R17':guest_NO_2_check_in_R17,
                        'guest_NO_2_check_out_R17':guest_NO_2_check_out_R17,
                        'Room_18':Room_18,
                        'first_name_of_guest_NO_1_R18':first_name_of_guest_NO_1_R18,
                        'last_name_of_guest_NO_1_R18':last_name_of_guest_NO_1_R18,
                        'guest_NO_1_check_in_R18':guest_NO_1_check_in_R18,
                        'guest_NO_1_check_out_R18':guest_NO_1_check_out_R18,
                        'first_name_of_guest_NO_2_R18':first_name_of_guest_NO_2_R18,
                        'last_name_of_guest_NO_2_R18':last_name_of_guest_NO_2_R18,
                        'guest_NO_2_check_in_R18':guest_NO_2_check_in_R18,
                        'guest_NO_2_check_out_R18':guest_NO_2_check_out_R18,
                        'Room_19':Room_19,
                        'first_name_of_guest_NO_1_R19':first_name_of_guest_NO_1_R19,
                        'last_name_of_guest_NO_1_R19':last_name_of_guest_NO_1_R19,
                        'guest_NO_1_check_in_R19':guest_NO_1_check_in_R19,
                        'guest_NO_1_check_out_R19':guest_NO_1_check_out_R19,
                        'first_name_of_guest_NO_2_R19':first_name_of_guest_NO_2_R19,
                        'last_name_of_guest_NO_2_R19':last_name_of_guest_NO_2_R19,
                        'guest_NO_2_check_in_R19':guest_NO_2_check_in_R19,
                        'guest_NO_2_check_out_R19':guest_NO_2_check_out_R19,
                        'Room_20':Room_20,
                        'first_name_of_guest_NO_1_R20':first_name_of_guest_NO_1_R20,
                        'last_name_of_guest_NO_1_R20':last_name_of_guest_NO_1_R20,
                        'guest_NO_1_check_in_R20':guest_NO_1_check_in_R20,
                        'guest_NO_1_check_out_R20':guest_NO_1_check_out_R20,
                        'first_name_of_guest_NO_2_R20':first_name_of_guest_NO_2_R20,
                        'last_name_of_guest_NO_2_R20':last_name_of_guest_NO_2_R20,
                        'guest_NO_2_check_in_R20':guest_NO_2_check_in_R20,
                        'guest_NO_2_check_out_R20':guest_NO_2_check_out_R20,


                        } )















                        me = EmailMessage(

                            'Travencia | Hotel Form',template_email , settings.EMAIL_HOST_USER, [The_Email,'mohamedsaleh902@yahoo.com', 'mojaba808@gmail.com'], 

                        )

                        me.content_subtype = "html"

                        me.fail_silently = False

                        me.send()  








