[web-master] main: Update sender of notes email (#21)
| From: | Andreas Heigl via GitHub | Date: | Sun, 25 Feb 2024 17:06:41 +0000 |
| Subject: | [web-master] main: Update sender of notes email (#21) | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-31512@lists.php.net to get a copy of this message | ||
Author: Andreas Heigl (heiglandreas)
Committer: GitHub (web-flow)
Pusher: Girgias
Date: 2024-02-25T16:52:53Z
Commit: https://github.com/php/web-master/commit/4791ab9e6e980a977c32cc4c988aa7a4f650b23d
Raw diff: https://github.com/php/web-master/commit/4791ab9e6e980a977c32cc4c988aa7a4f650b23d.diff
Update sender of notes email (#21)
This updates the sender of the notes email to the noreply@php.net
email-address that has the entered email-address of the user as name.
That way the email should be recognized by the lists-server as
noreply@php.net is a subscribed list-user
Changed paths:
M public/entry/user-note.php
Diff:
diff --git a/public/entry/user-note.php b/public/entry/user-note.php
index 436f2c6..b4ec32e 100644
--- a/public/entry/user-note.php
+++ b/public/entry/user-note.php
@@ -132,7 +132,7 @@ function validateUser($user) {
if (!$user) $user = "php-general@lists.php.net";
# strip spaces in email address, or will get a bad To: field
$user = str_replace(' ','',$user);
-mail($mailto,"note $new_id added to $sect",$msg,"From: $user\r\nMessage-ID:
<note-$new_id@php.net>", "-fnoreply@php.net");
+mail($mailto,"note $new_id added to $sect",$msg,"From:
\"$user\"<noreply@php.net>\r\nMessage-ID: <note-$new_id@php.net>",
"-fnoreply@php.net");
//var_dump(is_spammer('127.0.0.1')); // false
//var_dump(is_spammer('127.0.0.2')); // true
\ No newline at end of file