<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[resetta password dimenticata]]></title><description><![CDATA[<p dir="auto">buongiorno sto tentando di resettare la password dimenticata salvata in md5  usando PHPMailer-master ma sembra se ho capito bene che Google non accetta più questa funzione infatti mi da questo errore:<br />
qualcosa non ha funzionato: SMTP Error: Could not connect to SMTP host.Failed to connect to serverSMTP server error:Failed to connect server SMTP code: 99 Additional SMTP info: Cannot assign requested addres.<br />
Se la password la salvo in chiaro ( sconsigliato ) non ho problemi ma come posso resettare via mail  la password dimenticata? e se do l'incarico ad un programmatore quanto mi costa? <img src="https://dev.connect.gt/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=12b9555a9a1" class="not-responsive emoji emoji-android emoji--disappointed" style="height:1.4em;width:auto;vertical-align:middle" title=":(" alt="😞" /></p>
]]></description><link>https://dev.connect.gt/topic/250325/resetta-password-dimenticata</link><generator>RSS for Node</generator><lastBuildDate>Thu, 26 Nov 2026 20:55:37 GMT</lastBuildDate><atom:link href="https://dev.connect.gt/topic/250325.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 25 Apr 2023 06:46:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to resetta password dimenticata on Wed, 26 Apr 2023 19:15:49 GMT]]></title><description><![CDATA[<p dir="auto">ciao e buona serata come ripeto sto provato a resettare la password via mail ho provato di nuovo ma mi da il seguente errore:<br />
[26-Apr-2023 19:08:37 UTC] PHP Warning:  session_start(): Session cannot be started after headers have already been sent in /home/epntzhid/public_html/cambiapassword/index.php on line 62<br />
posto il code</p>
<pre><code>&lt;?php
include_once('connection.php');
if(isset($_REQUEST['password']))
{
  $email = $_REQUEST['email'];
  $check_email = mysqli_query($connection,"select email from users where email='$email'");
  $res = mysqli_num_rows($check_email);
  if($res&gt;0)
  {
    $message = '&lt;div&gt;
     &lt;p&gt;&lt;b&gt;Hello!&lt;/b&gt;&lt;/p&gt;
     &lt;p&gt;You are recieving this email because we recieved a password reset request for your account.&lt;/p&gt;
     &lt;br&gt;
     &lt;p&gt;&lt;button class="btn btn-primary"&gt;&lt;a href="https://amministrazione.netsons.org/cambiapassword/passwordreset.php?secret='.base64_encode($email).'"&gt;Reset Password&lt;/a&gt;&lt;/button&gt;&lt;/p&gt;
     &lt;br&gt;
     &lt;p&gt;If you did not request a password reset, no further action is required.&lt;/p&gt;
    &lt;/div&gt;';

include_once("PHPMailer-5.2-stable/class.phpmailer.php");
include_once("PHPMailer-5.2-stable/class.smtp.php");
$email = $email; 
$mail = new PHPMailer;
$mail-&gt;IsSMTP();
$mail-&gt;SMTPAuth = true;                 
$mail-&gt;SMTPSecure = "tls";      
$mail-&gt;Host = 'smtp.gmail.com';
$mail-&gt;Port = 587; 
$mail-&gt;Username = "tizio@gmail.com";
$mail-&gt;Password = "***********";
$mail-&gt;FromName = "Tech Area";
$mail-&gt;AddAddress($email);
$mail-&gt;Subject = "Reset Password";
$mail-&gt;isHTML( TRUE );
$mail-&gt;Body =$message;
if($mail-&gt;send())
{
  $msg = "We have e-mailed your password reset link!";
}
}
else
{
  $msg = "We can't find a user with that email address";
}
}

?&gt;
&lt;body&gt;
&lt;div class="container"&gt;  
    &lt;div class="table-responsive"&gt;  
    &lt;h3 align="center"&gt;Forgot Password&lt;/h3&gt;&lt;br/&gt;
    &lt;div class="box"&gt;
     &lt;form id="validate_form" method="post" &gt;  
       &lt;div class="form-group"&gt;
       &lt;label for="email"&gt;Email Address&lt;/label&gt;
       &lt;input type="text" name="email" id="email" placeholder="Enter Email" required 
       data-parsley-type="email" data-parsley-trigg
       er="keyup" class="form-control" /&gt;
      &lt;/div&gt;
      &lt;div class="form-group"&gt;
       &lt;input type="submit" name="password" value="Send Password Reset Link" class="btn btn-success" /&gt;
       &lt;/div&gt;
       
       &lt;p class="error"&gt;&lt;?php if(!empty($msg)){ echo $msg; } ?&gt;&lt;/p&gt;
     &lt;/form&gt;
     &lt;/div&gt;
   &lt;/div&gt;  
  &lt;/div&gt;
&lt;/body&gt;
&lt;/
</code></pre>
]]></description><link>https://dev.connect.gt/post/1309532</link><guid isPermaLink="true">https://dev.connect.gt/post/1309532</guid><dc:creator><![CDATA[imperor]]></dc:creator><pubDate>Wed, 26 Apr 2023 19:15:49 GMT</pubDate></item></channel></rss>