How to remove "site email address on behalf of" and just keep the sender email address in "from:" part of a mail from drupal 7 I am getting from part of a mail sent from my drupal 7 website like below

From: (site mail address) On Behalf Of (sender mail address)

Here I want to remove everything except sender email address, how can I do this?

I have found following url but it is expired

http://www.fosspedia.com/drupal-remove-on-behalf-of-from-the-sent-mails/

Any help???

Thanks
Well you can write a simple module, and in your module insert this function. Here is where i got the idea 

function yourmodule_mail_alter(&amp;$message)
{
    $message['headers']['Sender'] = $message['headers']['From'];
}


If you want to go with quick sketch comment, in the link to completely get rid of the headers use

&lt;?php
function mymodule_mail_alter(&amp;$message) {
  unset($message['headers']['Sender']);
  unset($message['headers']['Errors-To']);
  unset($message['headers']['Return-Path']);
}
?&gt;


There is also a module that can help out with this mail headers


  Control and modify any (almost any) mail header. Mail Headers allows
  you to: