Changes for page X1000 - Contact Registration Form
Last modified by SuperUwe Trueggelmann on 2025-05-26
From version 8.3
edited by SuperUwe Trueggelmann
on 2025-05-26
on 2025-05-26
Change comment:
There is no comment for this version
To version 5.8
edited by SuperUwe Trueggelmann
on 2023-01-25
on 2023-01-25
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Parent
-
... ... @@ -1,1 +1,1 @@ 1 - Main.WebHome1 +StartPage.WebHome - Content
-
... ... @@ -3,7 +3,7 @@ 3 3 import groovy.sql.Sql 4 4 5 5 String strDBTable = "\"regUser\".\"newUser\"" 6 - def sqlConnection = new Sql(services.cmpConnectDB.connectRegDB()) 6 + def sqlConnection = new Sql(services.cmpConnectRegDB.connectRegDB()) 7 7 8 8 String strCurRecCol = "firstname" 9 9 int intRecCount=0 ... ... @@ -146,7 +146,7 @@ 146 146 strEmailBody = strEmailBody + "Mobile phone: " + strMphone + "\r\n" + "\r\n" 147 147 strEmailBody = strEmailBody + "The request was made from IP address: " + strCreateIP 148 148 strEmailBody = strEmailBody + "\r\n" + "\r\n" + "Please click the below link to confirm your e-mail address:" + "\r\n" 149 - strEmailBody = strEmailBody + "https://cecocert.com/ xwiki/bin/view/StartPage/X1100%20-%20Process%20e-mail%20confirmation/WebHome"149 + strEmailBody = strEmailBody + "https://cecocert.com/bin/view/StartPage/X1100%20-%20Process%20e-mail%20confirmation/WebHome" 150 150 strEmailBody = strEmailBody + "?em=" + strEmail + "&cc=" + strConfCode 151 151 strEmailBody = strEmailBody + "\r\n" + "\r\n" + "If you do not confirm your e-mail address within 24 hours, the information you entered will be deleted!" 152 152 ... ... @@ -687,15 +687,12 @@ 687 687 688 688 #end 689 689 #if( $xcontext.strFormStatus == "SendEmail" ) 690 - ## Preparing message 691 691 #set($email_to = "${xcontext.strEmail}") 692 692 #set($email_subject = "CEC Registration - confirmation required to proceed") 693 693 #set($email_from = "cec_noreply@cecocert.com") 694 694 #set($email_text = "$xcontext.strEmailBody") 695 - ## Creating mesage 696 696 #set ($message = $services.mail.sender.createMessage($email_from, $email_to, $email_subject)) 697 697 #set ($discard = $message.addPart("text/plain", ${xcontext.strEmailBody})) 698 - ## Sending message 699 699 #set ($mailResult = $services.mail.sender.send($message)) 700 700 ## Check if the message was created properly and if we have permissions to send emails 701 701 #if ($services.mail.sender.lastError) ... ... @@ -704,33 +704,30 @@ 704 704 ## Check if the mail we tried to send has failed to be sent 705 705 #set ($statuses = $mailResult.statusResult.getAllErrors()) 706 706 #if ($statuses.hasNext()) 707 - 704 + 708 708 {{warning}} 709 - Something has gone wrong! Please do not try again! 706 + <p>Something has gone wrong! Please do not try again!</p> 710 710 {{/warning}} 711 - 712 712 #set ($status = $statuses.next()) 713 - {{warning}} 714 - I am sorry, but there was a problem with sending you your confirmation e-mail! 715 - The data you entered has likely already been stored in our database, and will not need to be entered again. 716 - Hence, please do not try entering the information again but instead send an e-mail to contact@cecocert.com informing us about the problem. 717 - As the subject line, please enter "CEC Registration - e-mail problem". 718 - In the body of the e-mail, please simply provide your name and that of your company. 719 - If possible, please copy and paste the error message shown below in red into the e-mail, below your name and that of your company. 720 - We are sorry for the inconvenience! 721 - {{/warning}} 722 - 709 + {{info}} 710 + <p>I am sorry, but there was a problem with sending you your confirmation e-mail!</p> 711 + <p>The data you entered has most likely already been stored in our database, and will not need to be entered again.</p> 712 + <p>Hence, please do not try entering the information again but instead send an e-mail to contact@cecocert.com informing us about the problem.</p> 713 + <p>As the subject line, please enter "CEC Registration - e-mail problem".</p> 714 + <p>In the body of the e-mail, please simply provide your name and that of your company.</p> 715 + <p>If possible, please copy the error message shown below into the e-mail.</p> 716 + <p>We are sorry for the inconvenience! 717 + <br> 718 + <p>Error Message:</p> 719 + {{/info}} 723 723 {{error}} 724 724 Error: $status.errorSummary ($status.state) 725 725 $status.errorDescription 726 726 {{/error}} 727 - 728 728 #else 729 - {{info}} 730 730 An e-mail asking you to confirm your e-mail address was sent to ${xcontext.strEmail}. 731 731 Please check your inbox and click on the link to confirm your e-mail address! 732 732 The process will only continue after you have confirmed your e-mail address. 733 - {{/info}} 734 734 #end 735 735 #end 736 736