Hi everyone,

I am working with weform module for email functionality.

Currently i have one form field like

First Name: rajesh
Last Name: verma
Email: er.rajesh12@gmail.com
Sample Email
Recipients: ravi@gmail.com
Sample Message:

I really want it to read as if came from “First Name Last Name [Email]” this is what I entered in the form
example like rajesh verma[er.rajesh12@gmail.com] is the from email.

function theme_webform_mail_headers($node, $submission, $email,senderemail ) {

  $headers = array(
    'X-Mailer' => 'Drupal Webform (PHP/' . phpversion() . ')',
  );
 
   /* Select appropriate email header */
 
    $headers['From'] = $senderemail ;
    $headers['Sender'] = $headers['Reply-To'] = $headers['Return-Path'] = $headers['Errors-To'] =   $senderemail;
  
 
  return $headers;
}

currently i am using drupal_mail function my from address override and am getting mail from default site admin email address.
ANyone have any idea.

I want email should come from fill up data rajesh verma[er.rajesh12@gmail.com] .