]> _ Git - ccv-wordpress.git/commitdiff
Wait #3445 @2
authorStephen Cameron <stephen@cubedesigners.com>
Mon, 27 Jul 2020 17:53:26 +0000 (19:53 +0200)
committerStephen Cameron <stephen@cubedesigners.com>
Mon, 27 Jul 2020 17:53:26 +0000 (19:53 +0200)
wp-content/mu-plugins/cube/src/Forms/Base.php
wp-content/themes/CCV/resources/views/forms/consultation.blade.php

index 69a13a40b9fa3ab80de76444ed869119f8add152..5ce0cd18692b2d466a57960fc90dda9a662dffba 100644 (file)
@@ -236,14 +236,12 @@ class Base
         $data = [];
 
         $to           = $this->destination;
-        $from         = 'CCV <no-reply@ccv-montpellier.fr>';
+        $from         = 'CCV Montpellier <no-reply@ccv-montpellier.fr>';
         $subject      = $this->form_title;
         $content_type = 'text/html';
         $charset      = get_bloginfo('charset');
         $headers[]    = sprintf('Content-Type: %s; charset=%s', $content_type, $charset);
-
-        //TODO: Set up SMTP delivery via CCV's server if we want to change the from address. Attempting to set this results in messages never arriving (starting 30/04/20)
-        //$headers[]    = sprintf('From: %s', $from);
+        $headers[]    = sprintf('From: %s', $from);
 
         // Gather filled fields into label/value pairs
         foreach ($this->fields as $field_name => $field) {
index 8051175fb4a911a84b160948eff7c25ead794e27..9e93cbe6fb45f52841e5fe7e5a2fb824592f2252 100644 (file)
           </p>
 
           <iframe class="block w-full overflow-hidden" height="320"
-                  src="https://uploader.purview.net/client/scmgeneste/" scrolling="no"
+                  src="https://purview.ccv-montpellier.fr/client/scmgeneste/" scrolling="no"
                   data-service="uploader.purview"></iframe>
 
           <p>