Author Topic: Adding info to emails sent  (Read 2878 times)

0 Members and 1 Guest are viewing this topic.

drhtm

  • Guest
Adding info to emails sent
« on: June 15, 2005, 04:57:15 PM »
Hi,

I have not been able to manage this on my own and I can really use some help here.  When someone registeres at my site, I receive an email in order to activate them and this is great.  However, I like to obtain a bit more information about the user who registered in the email.  For example, I created some extra fields in the registration form like 'First Name, Last name, country, gender, etc.' How can I add these extra fields to the email that is sent to me?

Please if someone can help me with this, I really apprecaite this.


Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Adding info to emails sent
« Reply #1 on: June 16, 2005, 12:07:45 AM »
u can try insert in register.php below:
Code: [Select]
        $site_email->reset();

This:
Code: [Select]
        $site_email->register_vars(array(
          "user_email" => $user_email,
          "user_homepage" => $user_homepage,
          "user_icq" => $user_icq,
        ));
That will register {user_email} {user_homepage} and {user_icq} tags, which u can use in the admin_activation.html template
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

drhtm

  • Guest
Re: Adding info to emails sent
« Reply #2 on: June 16, 2005, 12:53:32 AM »
beautiful...works like a charm  :lol:  thank you V@no.