Browse code

#14 fix from email header

Jimako authored on 2023/09/06 08:03:36
Showing 1 changed files
... ...
@@ -34,7 +34,7 @@ if(!defined("_CHARSET")) exit( );
34 34
 			else {
35 35
 				include_once(_BASEDIR."includes/emailer.php");
36 36
 				if(!$email) $output .= write_error(_ERROR);
37
-				else $result = sendemail($penname, $email, $_POST['email'], $_POST['email'], descript(strip_tags($_POST['subject'])), descript($_POST['comments'])."<br /><br />".(isMEMBER ? sprintf(_SITESIG2, "<a href='".$url."/viewuser.php?uid=".USERUID."'>".USERPENNAME."</a>") : _SITESIG), "html");
37
+				else $result = sendemail($penname, $email, $_POST['email'], $siteemail , descript(strip_tags($_POST['subject'])), descript($_POST['comments'])."<br /><br />".(isMEMBER ? sprintf(_SITESIG2, "<a href='".$url."/viewuser.php?uid=".USERUID."'>".USERPENNAME."</a>") : _SITESIG), "html");
38 38
 				if($result)  $output .= write_message(_ACTIONSUCCESSFUL);
39 39
 				else $output .= write_error(_ERROR);
40 40
 			}