Comments (4)
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.
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.
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.
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)
- No new lines in generated email HOT 1
- Unable delete empty folder
- Impossible d'ajouter un dossier/sous dossier
- Items disappeared from Password menu. We can only see folders and new items. HOT 6
- Scheduler not working error with CronExpression.php
- Unable to sync passwords after changing it in Active Directory
- Timeout problem with connectivity test HOT 2
- Fresh Install LDAP Test connection Internal Server Error
- Roles -> LDAP Syncronization is not working because objectGUID is not integer in Active Directory HOT 1
- Which is the best way to migrate to a new server? HOT 1
- Encrypting user TeamPass HOT 3
- Improve slow sql queries
- error 500 and key regeneration hangs HOT 1
- Error in the scheduler due to data entered by a user
- LDAP connection error and error 500 on the web page
- ldap group issue
- After Upgrade to Teampass 3.1.2 index.php returns too many redirects error HOT 25
- Access Users list HOT 2
- User list does not load HOT 2
- MFA disable - Teampass still need web acces (google) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from teampass.