Giter VIP home page Giter VIP logo

Comments (4)

nilsteampassnet avatar nilsteampassnet commented on July 19, 2024

I've done a mistake in the commitment of a file.
Can you please open file "includes/libraries/phpmailer/class.phpmailer.php"?
Goto line 162 and change $Port value to 25 instead of 26.

Please came back to me if works or not.

from teampass.

reuvygroovy avatar reuvygroovy commented on July 19, 2024

Still no.

These are the code changes I inputted in the previous version to enable e-mails on changes made:

In \includes\language\english.php:

$txt['email_itemedit_subject'] = "A password has been modified in TeamPass";

In \sources\items.queries.php at line 434 or so after the text:
//Update CACHE table
UpdateCacheTable("update_value", $data_received['id']);

I added:

//Announce by email?

if ( $data_received['annonce'] == 1 ){
    require_once("../includes/libraries/phpmailer/class.phpmailer.php");
    //envoyer email
    $destinataire= explode(';',$data_received['diffusion']);
    foreach($destinataire as $mail_destinataire){
        //envoyer ay destinataire
          $mail = new PHPMailer();
          $mail->SetLanguage("en","../includes/libraries/phpmailer/language");
          $mail->IsSMTP();                                   // send via SMTP
          $mail->Host     = $smtp_server; // SMTP servers
          $mail->SMTPAuth = $smtp_auth;     // turn on SMTP authentication
          $mail->Username = $smtp_auth_username;  // SMTP username
          $mail->Password = $smtp_auth_password; // SMTP password
          $mail->From     = $email_from;
          $mail->FromName = $email_from_name;
        $mail->AddAddress($mail_destinataire);     //Destinataire
          $mail->WordWrap = 80;                              // set word wrap
          $mail->IsHTML(true);                               // send as HTML
          $mail->Subject  =  $txt['email_itemedit_subject'];
          $mail->AltBody     =  $txt['email_altbody_1']." ".mysql_real_escape_string(stripslashes(($_POST['label'])))."                                             ".$txt['email_altbody_2'];
        $corpsDeMail = $txt['email_body_1'].mysql_real_escape_string(stripslashes(($_POST['label']))).$txt['email_body_2'].
          $_SESSION['settings']['cpassman_url']."/index.php?page=items&group=".$_POST['categorie']."&id=".$new_id.$txt['email_body_3'];
          $mail->Body  =  $corpsDeMail;
          $mail->Send();
    }
}

That worked for me before the upgrade, but no longer after. Any way I can debug the mail function to see what the problem is?

Reuvy

-----Original Message-----
From: Nils Laumaillé [mailto:[email protected]]
Sent: Sunday, January 15, 2012 11:37 AM
To: ראובן סינגר (LREUVEN)
Subject: Re: [TeamPass] Upgrade to 2.1.2 (#17)

I've done a mistake in the commitment of a file.
Can you please open file "includes/libraries/phpmailer/class.phpmailer.php"?
Goto line 162 and change $Port value to 25 instead of 26.

Please came back to me if works or not.


Reply to this email directly or view it on GitHub:
#17 (comment)

from teampass.

chucklebrother avatar chucklebrother commented on July 19, 2024

I had to make this change on my 2.1.2 installation.

After the change I am able to get email password changes. If I create a new password and choose to notify myself I do get an email.

If I choose an existing item, choose to notify myself and then change the password, I don't get an email.

Is this the expected behaviour?

from teampass.

reuvygroovy avatar reuvygroovy commented on July 19, 2024

By me I don't get any notifications at all. I tested on a new item that I created, both before I finished creating, and when I modified the user name. Both times it did not send me a notification.

from teampass.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.