Add external database data to signup email

Discussion in 'Customization & add-ons' started by conquermaths, Sep 27, 2007.

  1. conquermaths

    conquermaths New Member

    Joined:
    Feb 13, 2006
    Messages:
    9
    Hi,

    I'm looking to add some data extracted from an additional database into my signup emails and into lost password emails.

    Does anyone know of a way to do this, or can anyone point me in the right direction?

    Many thanks
    Richard
  2. conquermaths

    conquermaths New Member

    Joined:
    Feb 13, 2006
    Messages:
    9
    Anybody got any ideas?
  3. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    You'll have to edit the file sendpass.php, have it open up the database, search for the matching email, extract the fields you want, and assign them to a variable to be passed to the email template.

    It's doable, but will require customization.

    David
    __________________
    Discover How to Start-Up and Run a Profitable Membership Site
    ==> Membership Academy <==
    aMember Install Videos and Hacks, Joomla /Wordpress integration.
  4. conquermaths

    conquermaths New Member

    Joined:
    Feb 13, 2006
    Messages:
    9
    Thanks for the advice. I've successfully added the info I wanted into the sendpass email - easier than I expected!

    Do you know where the variables are defined for the signup email as I wish to do the same with that.

    Many thanks
    Richard
  5. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    have a look to /amember/common.inc.php
    function mail_signup_user($member_id){
  6. conquermaths

    conquermaths New Member

    Joined:
    Feb 13, 2006
    Messages:
    9
    Many thanks... got it working with no problems!

Share This Page