I have a very old "Email this page" xslt that is using Sendmail to send the page link. However the form sends even without a valid email address.
Can anyone suggest a way I can fix this without having to create a new xslt page, or has anyone got a simple "Email this page" xslt form that checks for a valid email address?
<!-- Send Mail --> <xsl:variable name="smtpresult" select="umbraco.library:SendMail('[email protected]', $femail, 'ISIS - Your friend has referred this page.', $htmlmail, 'true')" /> <div class="success"> <xsl:value-of select="$msgSuccess" /> </div> <!-- After sending Reload the Page -->
Email this page sends without valid email address
I have a very old "Email this page" xslt that is using Sendmail to send the page link. However the form sends even without a valid email address.
Can anyone suggest a way I can fix this without having to create a new xslt page, or has anyone got a simple "Email this page" xslt form that checks for a valid email address?
Cheers,
JV
Here's my code:
I've created a HTML version using jQuery for validation, which I'm going to try and implement into my existing XSLT:
is working on a reply...