Changes for page X1000 - Contact Registration Form
Last modified by SuperUwe Trueggelmann on 2025-05-26
From version 5.5
edited by SuperUwe Trueggelmann
on 2023-01-25
on 2023-01-25
Change comment:
There is no comment for this version
To version 8.2
edited by SuperUwe Trueggelmann
on 2025-05-26
on 2025-05-26
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 - StartPage.WebHome1 +Main.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.cmpConnect RegDB.connectRegDB())6 + def sqlConnection = new Sql(services.cmpConnectDB.connectRegDB()) 7 7 8 8 String strCurRecCol = "firstname" 9 9 int intRecCount=0 ... ... @@ -687,14 +687,18 @@ 687 687 688 688 #end 689 689 #if( $xcontext.strFormStatus == "SendEmail" ) 690 + Preparing message 690 690 #set($email_to = "${xcontext.strEmail}") 691 691 #set($email_subject = "CEC Registration - confirmation required to proceed") 692 692 #set($email_from = "cec_noreply@cecocert.com") 693 693 #set($email_text = "$xcontext.strEmailBody") 695 + Creating mesage 694 694 #set ($message = $services.mail.sender.createMessage($email_from, $email_to, $email_subject)) 695 695 #set ($discard = $message.addPart("text/plain", ${xcontext.strEmailBody})) 698 + Sending message 696 696 #set ($mailResult = $services.mail.sender.send($message)) 697 697 ## Check if the message was created properly and if we have permissions to send emails 701 + Checking for error 698 698 #if ($services.mail.sender.lastError) 699 699 {{error}}$exceptiontool.getStackTrace($services.mail.sender.lastError){{/error}} 700 700 #end ... ... @@ -701,29 +701,33 @@ 701 701 ## Check if the mail we tried to send has failed to be sent 702 702 #set ($statuses = $mailResult.statusResult.getAllErrors()) 703 703 #if ($statuses.hasNext()) 704 - {{html}} 705 - <p>Something has gone wrong! Please do not try again!</p> 706 - {{/html}} 708 + 709 + {{warning}} 710 + Something has gone wrong! Please do not try again! 711 + {{/warning}} 712 + 707 707 #set ($status = $statuses.next()) 714 + {{warning}} 715 + I am sorry, but there was a problem with sending you your confirmation e-mail! 716 + The data you entered has likely already been stored in our database, and will not need to be entered again. 717 + Hence, please do not try entering the information again but instead send an e-mail to contact@cecocert.com informing us about the problem. 718 + As the subject line, please enter "CEC Registration - e-mail problem". 719 + In the body of the e-mail, please simply provide your name and that of your company. 720 + 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. 721 + We are sorry for the inconvenience! 722 + {{/warning}} 723 + 708 708 {{error}} 709 - {{html}} 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 - {{/html}} 720 720 Error: $status.errorSummary ($status.state) 721 721 $status.errorDescription 722 722 {{/error}} 728 + 723 723 #else 730 + {{info}} 724 724 An e-mail asking you to confirm your e-mail address was sent to ${xcontext.strEmail}. 725 725 Please check your inbox and click on the link to confirm your e-mail address! 726 726 The process will only continue after you have confirmed your e-mail address. 734 + {{/info}} 727 727 #end 728 728 #end 729 729