send email to affiliate during subscription expiry

Discussion in 'aMember Pro v.4' started by razlie, Sep 12, 2012.

  1. razlie

    razlie New Member

    Joined:
    Aug 29, 2012
    Messages:
    4
    Hi after searching the forum i found this code that might work for my problem.. where i need to send email to affiliate when a user is expired ... but unfortunately its in aMember v3...

    Appreciate if anyone here can convert it to aMember v4

    the code as follows:
    setup_plugin_hook("subscription_deleted","expire_notification");

    function expire_notification($member_id, $product_id,$member) {
    mail_customer("email@address.com", "User's $member[login] subscription to product $product_id expired", "User $member[login] expired")
    }

    Appreciate your help

Share This Page