Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
donate
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
The Tor Project
Web
donate
Commits
67075ee0
Commit
67075ee0
authored
2 years ago
by
mathieu
Committed by
Mathieu Lutfy
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
#1
SubscriptionController: set the Return-Path to CiviCRM and From newsletter
parent
81529a62
No related branches found
No related tags found
1 merge request
!1
tpo/web/donate#1 SubscriptionController: set the Return-Path
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/SubscriptionController.php
+3
-1
3 additions, 1 deletion
src/SubscriptionController.php
with
3 additions
and
1 deletion
src/SubscriptionController.php
+
3
−
1
View file @
67075ee0
...
...
@@ -128,7 +128,9 @@ class SubscriptionController extends BaseController {
$redis
->
expire
(
$key
,
3600
);
$email
=
new
\PHPMailer
();
\PHPMailer
::
$validator
=
'noregex'
;
$email
->
setFrom
(
'info@torproject.org'
,
"The Tor Project"
);
$email
->
setFrom
(
'newsletter@torproject.org'
,
"The Tor Project"
);
// Set the Return-Path so that bounces are processed by CiviCRM
$email
->
Sender
=
'civicrm@crm.torproject.org'
;
$names
=
array
(
ArrayExt
::
fetch
(
$subscriptionInfo
,
'firstName'
,
''
),
ArrayExt
::
fetch
(
$subscriptionInfo
,
'lastName'
,
''
));
$nameString
=
implode
(
' '
,
$names
);
$email
->
addAddress
(
$subscriptionInfo
[
'email'
],
$nameString
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment