I created a very simple custom module that allows a user to be able to share a content offer from a thank you page via email.
This module requires three custom text fields which I have named: Email Subject, Email Body Message, and Link to Associated Landing Page. The following code is the put into the right side of the screen:
<a href="mailto:?subject={{ widget.email_subject }}&body={{ widget.email_body_message }} -{{ widget.link_to_associated_landing_page }}">Email to a Friend</a>
This bit of code takes all of the values from the custom fields and puts them into specific spots within an href in order to automatically generate an email on click that has a pre populated subject, body and link to the associated landing page at the end of the body.
Here is what the full custom module looks like from the template view:
Here is what this module looks like on the page editor screen:
Here is what the email to a friend module looks like on the live site: (Note that we are ONLY talking about the Email to a friend area, not the headline & download now button.
And finally, here is what the generated email looks like when a user clicks the "email to a friend" link:
I created a very simple custom module that allows a user to be able to share a content offer from a thank you page via email.
This module requires three custom text fields which I have named: Email Subject, Email Body Message, and Link to Associated Landing Page. The following code is the put into the right side of the screen:
This bit of code takes all of the values from the custom fields and puts them into specific spots within an href in order to automatically generate an email on click that has a pre populated subject, body and link to the associated landing page at the end of the body.
Here is what the full custom module looks like from the template view:
Here is what this module looks like on the page editor screen:
Here is what the email to a friend module looks like on the live site:
(Note that we are ONLY talking about the Email to a friend area, not the headline & download now button.
And finally, here is what the generated email looks like when a user clicks the "email to a friend" link: