PHP Classes

Sending php version info in confirmation email header

Recommend this page to a friend!

      PHP Secure Login and Registration  >  PHP Secure Login and Registration package blog  >  Secure PHP Login Scri...  >  All threads  >  Sending php version info in...  >  (Un) Subscribe thread alerts  
Subject:Sending php version info in...
Summary:Possible security threat
Date:2017-03-17 02:58:28

  1. Sending php version info in...   Reply   Report abuse  
Picture of spectatorx spectatorx - 2017-03-17 02:58:28
I'm reviewing code of your class at the moment and i'm wondering with that line:
$headers = 'X-Mailer: PHP/' . phpversion();
Why did you write this phpversion() function in here? Is it necessary? To be honest i do not see point of sending server's php version info in header of an email. Or i misunderstand that line?

Overall very nicely written class and example of its use, it is ready to add to any website as it is already.