Add Unsubscribe link to Joomla subscription email template?

Chacapamac 30 Jun, 2011
In my Joomla Subscription Form, I add a “Email - sendmailSend” Action (Events) to send a customize email after subscription with the name, username and password for the user records.

I really need to add a direct link in this email for the user to be able to unsuscribe (opt-out). A direct link to his own unsuscribe Joomla form.

No idea how to do that???
GreyHead 01 Jul, 2011
Hi Chacapamac ,

I think you can do this by creating a Custom Event in your form and building a link to that. The link has to identify the event e.g. event=unsubscribe and hae some way of identifying the user e.g. uid=999.

The URL will then look like http://mydomain.com/index.php?option=com_chronoforms&chronoform=some_form&event=unsubscribe&uid=999

In the new UnSubscribe event you'll need a custom code action that will check the URL and do whatever is necessary to unsubscribe the user.

Bob
Chacapamac 02 Jul, 2011
I find a very simple solution (for Joomla 1.5)

Now I can add a unsubscribe link in the custom email send by Chronoform to new members that register by my custom Chronoform Joomla subscrition form.

This make me realize that Joomla DON'T HAVE A UNSUSCRIBE POSSIBILITY.... Only if you are an administrator, but user have no way to unsubscribe themself...

This should be included in Joomla right away and should be a top priority. In Canada, if you receive a newsletter or extending that you subscribe to anything you should be able to unsubscribe as well. If not you are spamming or trapping people in your site.... This is really bad....

Anyway, we are lucky that Julián Ayora did something about it with is component—> com_unsubscribe
http://extensions.joomla.org/extensions/clients-a-communities/membership/10229

This is a really simple component. After installation, you need to create a menu to the component (don't need to be published) and make a link to the unpublished menu or published the menu to have a link to a bare unsubscribe form with username, password, email and unsubscribe button that will eliminate a user from jo_users.

The component need a little bit of work to look good.
All text in there work with the jtext code and you can add pretext and construct with css a pretty good unsubscribe multilingual experience.

Note 1: You have to create your own language files — ex.: en-GB.com_unsubscribe.ini — fr-FR.com_unsubscribe.ini

Note 2: I personally change the inner code of the diverse template and modify all the calls in the jtext as they where not in CAPITAL letters. Language file should have tags in capital letter to work????
Ex.: JText::_( 'DELETE_ACCOUNT' );
Exemple of my personal English file (beware of modification from the original code)...

CLOSE=Close
DELUSER=You have sucessfully remove your subscription from EZH.
ERROR=Error
INFO1=Sorry that you don't want to participate in this free subscription. EZH need your free support to be able to continue to promote our national sport to the youth generation.
INFO2=Fill in the form with the login information provide to you in you're welcome e-mail and press the "Delete account" button
USERNAME=Username
PASSWORD=Password
MAIL=Email
DELETE_ACCOUNT=Delete acount

Obviously the developer of this component didn’t have the time to refine this component or make is own site in English, but I give him five stars to do something about a major flaw in Joomla — Bravo.
This topic is locked and no more replies can be posted.