Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 2.1.4
-
Fix Version/s: 2.2.0
-
Component/s: Core CiviCRM
-
Labels:None
Description
When sending mail via Tell a Friend feature, the From: email address is constructed incorrectly.
I donated as jack.adams@creepy.org and then sent a Tell a Friend mail.
The output was:
From: "jack.adams@creepy.org (via creepy.org)" <jack.adams@creepy.org>
The intended behavior is to use the domain part of the configured default FROM email address (which I had set to "info@civicrm.org"). The point of having the "via" is to clarify that the email was sent out from the owning org's site and not directly from "my friend".
From my snooping, the code which apparently sets the "via" currently is in Friend/BAO/Friend.php (line 192).
list( $username, $mailParams['domain'] ) = split( '@', $mailParams['email_from'] );