Browse Source

mailer.php: to_address/to_name was used instead of from_address/from_name

Andrew Dolgov 8 months ago
parent
commit
eb48aa5840
1 changed files with 1 additions and 1 deletions
  1. 1 1
      classes/mailer.php

+ 1 - 1
classes/mailer.php

@@ -16,7 +16,7 @@ class Mailer {
 
 		$additional_headers = $params["headers"] ? $params["headers"] : [];
 
-		$from_combined = $from_name ? "$to_name <$to_address>" : $to_address;
+		$from_combined = $from_name ? "$from_name <$from_address>" : $from_address;
 		$to_combined = $to_name ? "$to_name <$to_address>" : $to_address;
 
 		Logger::get()->log("Sending mail from $from_combined to $to_combined <$to_address> [$subject]: $message");