How to send to the user the current page url via mail?

oloccina 17 Feb, 2017
Hello,
I was wondering if it is possible to send to the user the current page url via mail after the form is being submitted?
Any suggestion?
Non-developer here, but I am html savvy and have no fear in copy/paste misterious codes🙂

Thank you
Max_admin 18 Feb, 2017
Hi oloccina,

Please try this code in the email template:
<?php echo \JURI::current(); ?>

best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
oloccina 18 Feb, 2017
Thanks! that works.

It only works if the url where the form is placed is a SEO friendly one,
eg. if the url is
https://mysite.com/index.php?option=com_chronoforms5&chronoform=iscrizione-newsletter-cherry
it just sends the user this url
https://mysite.com/index.php

but it's perfectly fine as I am only going to use this for seo friendly urls.

Thanks again!
Max_admin 18 Feb, 2017
Hi oloccina,

You may try instead:
<?php echo \GCore\Libs\Url::current(); ?>


Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.