diff --git a/Acquisti/settings.py b/Acquisti/settings.py
index 91301f4d266dcdf5a2a6c113d5bf16cf0ed64dae..3ff9a4e9edcaa0dfbf9b5c757cfa4d24bb64379f 100644
--- a/Acquisti/settings.py
+++ b/Acquisti/settings.py
@@ -173,3 +173,10 @@ DIRETTORE = 'silvano.fineschi@inaf.it'
 RESPONSABILE_UFFICIO_CONTABILITA = 'tiziana.gamba@inaf.it'
 RESPONSABILE_UFFICIO_ACQUISTI = 'luigi.genesi@inaf.it'
 UFFICIO_ACQUISTI = ['luigi.genesi@inaf.it','laura.roma@inaf.it','giuseppina.antico@inaf.it']
+
+EMAIL_HOST = 'smtp.gmail.com'
+EMAIL_HOST_USER = 'ca.volpicelli@gmail.com'
+EMAIL_HOST_PASSWORD = 'caV#290957#Vac'
+EMAIL_PORT = 587
+EMAIL_USE_TLS =True
+EMAIL_USE_SSL = False
diff --git a/utenti/templates/plain.html b/utenti/templates/plain.html
index f150428d4ec78a5b5b3b1953294ea4b0b7a0f2f3..fc6b9489ef59ef520f82e39d03255de25d654962 100644
--- a/utenti/templates/plain.html
+++ b/utenti/templates/plain.html
@@ -122,7 +122,8 @@
                                 </span>                            </a>
                         </li>
                         </ul>
-                        <form>
+                        <form action="/utenti/save/richiesta" method="POST">
+                        {% csrf_token %}
                         <div class="tab-content">
                        
                                     <div id="step-1" class="tab-pane " role="tabpanel">
@@ -443,7 +444,7 @@
                                         </span>
                                         </div>
                                         <div class="row">
-                                        Il bene/servizio in oggetto e' composto dai seguenti articoli:
+                                        <h2>Il bene/servizio in oggetto e' composto dai seguenti articoli: </h2>
 
                                         </div>
 
@@ -460,13 +461,14 @@
                                         <div class="articolidiv ">
                                             
                                         </div>
-                                        <input id="acceptTerms" name="acceptTerms" type="checkbox" class="required"> <label for="acceptTerms">I agree with the Terms and Conditions.</label>
+                                        <h2> e dovra' essere caricato sui seguenti capitoli degli obiettivi funzione : </h2>
                                         </div>
 
                                     <div id="step-6" class="tab-pane" role="tabpanel">
                                         <h1>Finish</h1>
                                         <h2>Terms and Conditions</h2>
-                                        <input id="acceptTerms" name="acceptTerms" type="checkbox" class="required"> <label for="acceptTerms">I agree with the Terms and Conditions.</label>
+                                        <button type="submit"> Salva Richiesta </button>
+                                        <button type="submit"> Invia Richiesta  </button>
                                         </div>                        
                         
                        
diff --git a/utenti/urls.py b/utenti/urls.py
index c27157dac1cc2af5d14d38d5dbd055ab51305f9f..7c7d985b1b909897bd69e9350a5c1f58764e0577 100755
--- a/utenti/urls.py
+++ b/utenti/urls.py
@@ -1,10 +1,11 @@
 from django.urls import path
-from .views import Index,SaveAcquisto,AcquistiList
+from .views import Index,SaveRichiesta,AcquistiList
 
 
 urlpatterns = [
     path(r'index', Index.as_view()),
-    path(r'saveacquisto',SaveAcquisto.as_view()),
+    #path(r'saveacquisto',SaveAcquisto.as_view()),
+    path(r'save/richiesta',SaveRichiesta.as_view()),
     path('listaarticoli/<idrichiedente>', AcquistiList.as_view(), name='acquisti-list'),
 
 
diff --git a/utenti/views.py b/utenti/views.py
index 3e6adf45d1475772189f863ebcd2efca705f14a4..0c8a71e8a335e629d427f5631f33cb23c9abbfdd 100644
--- a/utenti/views.py
+++ b/utenti/views.py
@@ -33,29 +33,33 @@ class Index(CreateView):
         context = {'ob_fun': ob_fun,'pollo': 'pollo'}
         return HttpResponse(template.render(context,request))
 
-class SaveAcquisto(View):
+
+
+
+
+class SaveRichiesta(View):
     def post(self,request):
         ar = []
         quantita = request.POST.getlist('quantita')
         codiceproduttore = request.POST.getlist('codiceproduttore')
-        descrizione = request.POST.getlist('descrizione')
-        prezzo = request.POST.getlist('prezzo')
+        descrizionearticolo = request.POST.getlist('descrizionearticolo')
+        prezzoarticolo = request.POST.getlist('prezzoarticolo')
         i=0 
         for one in quantita:
-            ss={'quantita': one ,'codiceproduttore':codiceproduttore[i],'descrizione':descrizione[i],'prezzo':prezzo[i]}
+            ss={'quantita': one ,'codiceproduttore':codiceproduttore[i],'descrizionearticolo':descrizionearticolo[i],'prezzoarticolo':prezzoarticolo[i]}
             ar.append(ss)
             i+=1
         i=0
-        obiettivofunzione = request.POST.getlist('obiettivofunzione')
+        #obiettivofunzione = request.POST.getlist('obiettivofunzione')
         idobiettivofunzione = request.POST.getlist('idobiettivofunzione')
-        prezzobfun = request.POST.getlist('prezzoobfun')
+        prezzoobfun = request.POST.getlist('prezzoobfun')
         capitolo = request.POST.getlist('capitolo')
         responsabilefondiobfun = request.POST.getlist('responsabilefondiobfun')
         recipients=[]
         obfun = []
-        for one in obiettivofunzione:
+        for one in idobiettivofunzione:
             recipients.append(responsabilefondiobfun)
-            ss={'capitolo': capitolo[i],'idobiettivofunzione':idobiettivofunzione[i],'obiettivofunzione':one,'prezzoobfun': prezzobfun[i] ,'responsabilefondiobfun':responsabilefondiobfun[i]}
+            ss={'idobiettivofunzione':idobiettivofunzione[i],'prezzoobfun': prezzoobfun[i] }
             obfun.append(ss)
 
             ar.append(ss)