Author Topic: Sendmail arguments and New users notification  (Read 27055 times)

0 Members and 1 Guest are viewing this topic.

Offline annam

  • Newbie
  • *
  • Posts: 21
    • View Profile
Sending email although account activation => BY email
« Reply #15 on: May 12, 2006, 10:06:29 AM »
I have account activation set to /by email
But i want to be adviced on new registration because I
need to give permission to some special members all the time.
Anyone could help please???


Offline Suricata

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Sendmail arguments and New users notification
« Reply #16 on: August 15, 2007, 12:21:25 AM »
Hallo Jan,

ich benutze 1.7.4. und ich habe diese Änderung bei mir eingebaut. Aber es funktioniert nicht.
Ich bekomme keine Mail, wenn sich ein User registriert.

Der User registriert sich bei mir per Mail.

Was mache ich falsch? Hier der Code in der register.php:

if ($config['account_activation'] == 2) {
        include(ROOT_PATH.'includes/email.php');
        $site_email = new Email();
      $site_email->set_to($config['site_email']);
      $site_email->set_subject("New user registration");
      $body = "Neues Mitglied hat sich angemeldet: $user_name\nEdit user: ".$script_url."/admin/         index.php?goto=".urlencode("users.php?action=edituser&user_id=".$site_db->get_insert_id());
      $site_email->set_simple_body($body);
      $site_email->send_email();

Thx
The Suricata

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Sendmail arguments and New users notification
« Reply #17 on: August 15, 2007, 12:38:32 AM »
Function in register.php for user register and advice email message ...  :|
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline Metzga

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: Sendmail arguments and New users notification
« Reply #18 on: March 24, 2009, 08:37:21 PM »
I've got a Problem using Version 1.7.6.
I pasted the Code like it's describe below. Problem is, i don't get any massage if sb. registers.
Could u help me Please.

Gerne auch in Deutsch ,)

I pasted the following code into
        $site_email->reset();
        $site_email->set_to($config['site_email']);
        $site_email->set_subject($lang['admin_activation_emailsubject']);
        $user_details_url = $script_url."/admin/index.php?goto=".urlencode("users.php?action=edituser&user_id=".$user_id."&activation=1");
        $site_email->register_vars("user_details_url", $user_details_url);
        $site_email->set_body("admin_activation", $config['language_dir_default']);
        $site_email->send_email();

Greeeetz Metzga

Offline Metzga

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: Sendmail arguments and New users notification
« Reply #19 on: March 26, 2009, 04:43:19 PM »
Isn't there anybody out there who can halp me ?

Gretz