title: How can we set "Return-Path" in a mail when we use "Mail::Sendmail" module to send mail?
body: <p>How can we set "Return-Path" in a mail when we use "Mail::Sendmail" module to send mail?</p>
  
  <p>I want to send an email with a from address as <code>email_id@gmail.com</code> to <code>sender_to@gmail.com</code> from my own server. For example it should be www.example.com </p>
  
  <p>I want to add the <code>Return-path</code> for that email as <code>example@example.com</code>. I had try many was but failed to set it properly.</p>
  
  <p>The code is as follows :</p>
  
  <pre><code>#!/usr/bin/perl -w
  use CGI;
  use Mail::Sendmail;
  
  %mail = (
      To =&gt; $email,
      From=&gt;  $user_email,
      subject=&gt; $subject,
      'X-Mailer'=&gt; "example.com Campaign Sharing Software",
  );
  $default_email                  = qq{example@example.com};
  $mail{'Reply-To'}               = $user_email;
  $mail{'content-type'}           = "text/html"; 
  $mail{Smtp}                     = $GLOB{settings}{SMTPSERVER_BULK};
  $mail{'Message : '}             = $mail_content;
  if(sendmail  %mail)
  {
         print qq{mail sent successfully};
  }
  </code></pre>
  
  <p>I had set <code>$mail{'Return-Path'} = $default_email;</code>. But the Return-Path I found in the gmail when click on <strong>Show Original</strong> is <strong><code>Return-Path : from_email_id</code></strong>.</p>
  
  <p>Actually I want it as <strong><code>Return-Path : $default_email</code></strong>.</p>