CMS MADE SIMPLE FORGE

FrontendUser Mailer

 

[#5733] From-adres is the same as the admin e-mailadress

avatar
Created By: Joost de Bruijn (joostdebruijn)
Date Submitted: 2010-11-23 01:52

Assigned To: Georg Busch (nan)
Resolution: Accepted
State: Open
Summary:
From-adres is the same as the admin e-mailadress
Detailed Description:
Add a possibility that the From-adress in the e-mail is the same as the
e-mailadress of the backenduser who sends the e-mail. If there is no
e-mailadress given for the backenduser, the module used the adress given in the
CMSMailer-module.

History

Comments
avatar
Date: 2010-11-23 10:21
Posted By: Georg Busch (nan)

Nice idea.
Will be added in next release.
      
avatar
Date: 2011-08-28 17:45
Posted By: Téïcée (teicee)

Hello,

I have resolved this problem.
The from-adress is now the adress of the user logged in.

Modified file : "action.sendMail.php"

Lines affected  :

Ligne 52, replace "$sentby_id = get_userid();" by :
$sentby_id = get_userid();
global $gCms;
$userops =& $gCms->GetUserOperations();
$thisuser = $userops->LoadUserByID($sentby_id);

Before Ligne 246, add :
$cmsmailer->SetFrom($thisuser->email);
$cmsmailer->SetFromName($thisuser->username);


I hope this would be usefull
      
Updates

Updated: 2010-11-23 10:21
resolution_id: => 6
assigned_to_id: 100 => 3991