Skip to content

Subscription & unsubscription example code

edited April 2013 in Using Sendy

Hi,

Great software, missing just one thing.
Cannot find how to let users unsubscribe with a form.
Like the subscribe form, but then with optionm to unsubscribe..
Can this be done?

Thanks,
Bas

Comments

  • Hi,

    Sendy provides you with a subscribe form HTML code you can embed anywhere on your website.

    1. Go to 'View all lists'
    2. Select your desired list
    3. Click 'Subscribe form' at the top right to get the HTML code

    For anything custom you need to accomplish with regards to subscribe and unsubscribe, use Sendy's API http://sendy.co/api.

    Thanks.

    Ben

  • Hi Ben,

    Thanks...I'll figure that out but hoped there was already some code available.
    I really like the script, but I think it's a pitty there are no snippets available in the forums or in documentation..

    Thanks anayways!
    Bas

  • I'm working on ajax subscribe / unsubscribe form..
    So I'll post the result when ready for others to re-use if they want...

  • I really like the script, but I think it's a pitty there are no snippets available in the forums or in documentation..

    I was thinking you can be the first. :)

    I'm working on ajax subscribe / unsubscribe form.. So I'll post the result when ready for others to re-use if they want...

    Thanks Bas!

    Ben

  • Hi Ben...

    This is working for me, made a small php script with ajax functionality that can be configured to handle subscribtions or unsubscriptions.

    Can be found here:
    http://pastebin.com/CSARkCGY

    To install:

    make 2 small additions to subscribe.php and unsubscribe.php
    add 1 extra file (subscribe_ajax.php)
    Set 3 config options on top of subscribe_ajax.php

    Hopefully it will be helpful for others.

    Ben.. Thanks for the great script, I really enjoy it!

  • Thanks for sharing, I really appreciate it. :)

    Ben.. Thanks for the great script, I really enjoy it!

    I'm really glad to hear, thank you!

    Ben

This discussion has been closed.