1
0
-1

We are currently sending submission verification email to users to confirm their email address upon submitting a form. At the moment, the email simply contains the URL for them to click to verify their email address.

However, I would also like to either:

 - attach PDF receipt of the form with this email so customer could see the form they have filled or

 - add a link to PDF receipt in the email which customer can open to view

#set( $FirstName = "")
#set( $LastName = "") 
#foreach ($extractData in $submission.submissionExtractData)
      #if("FirstName" == ${extractData.name})
      	#set( $FirstName = ${extractData.value})
      #end
	  #if("LastName" == ${extractData.name})
      	#set( $LastName = ${extractData.value} + ',' )
      #end
    #end

<html>
<head>
<title>Please Confirm Your Submission</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
</head>
<body style="background:#ececec;">
	<center style="padding:1em;">
	<table style="width:640px; border-collapse:collapse; font-family:Arial,Helvetica,sans-serif;">
	<tr>
		<th style="color:white; background:#005596; text-align:left; padding:1em;">
			Please Confirm Your Submission
		</th>
	</tr>
	<tr>
		<td style="color:black; background:white; text-align:left; padding:1em;">
          	<p> Dear $FirstName $LastName </p>
          	##<p> You submitted a Currency Services form at $format.date(${submission.timeSubmission}, "h:mm a, dd MMMM yyyy"). </p>
          	
			#if ($submission.emailVerificationAttempts < 1)
          		<p> Thank you, we have received your application submission. </p>
          	#end
          	#if ($submission.emailVerificationAttempts >= 1)
          		<p> This is a friendly reminder that your Ebury account application is still pending your confirmation. </p>
          	#end
          	
			<p> Please confirm your submission by clicking on the link below: </p>
          	<p> <a href="${verificationUrl}">${verificationUrl}</a> </p>               
          	<p> Please note that you need to confirm your submission for your application to be processed. This link is valid until $format.date($timeoutDatetime, "EEEE, dd MMMM"). </p>
          	##<p> $format.date($timeoutDatetime, "EEEE, dd MMMM") </p>
          	<p> Kind regards, </p>
          	<p> Ebury. </p>
          
            <p>${submission.receiptNumber}</p>
		</td>
	</tr>
	<tr>
		<td style="color:#d9fffd; background:#556c90; text-align:left; padding:1em;">
		</td>
	</tr>
	</table>
	</center>
</body>
</html>

 

 

Can someone please point to the right direction?

    CommentAdd your comment...