Last modified by SuperUwe Trueggelmann on 2025-05-26

From version 7.4
edited by SuperUwe Trueggelmann
on 2025-05-26
Change comment: There is no comment for this version
To version 8.2
edited by SuperUwe Trueggelmann
on 2025-05-26
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -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