title: How to get wordpress post author email in qoutes
body: <p>I am trying to get wordpress post author email in a quote like "myeamil@live.com" on single.php page. </p>
  
  <p>Actually I wanna send email to that author who posted this post.</p>
  
  <p>I am using wp_mail function to send email to author from single.php page.</p>
  
  <p>Here is the variable i am using but it is getting admin email.</p>
  
  <pre><code>$emailTo = get_option('admin_email');
  </code></pre>
  
  <p>Instead of admin email I want author email who posted the post. I need help please. Many thanks.</p>
  
  <p><strong>Update</strong></p>
  
  <p>Here is my code i am trying to do </p>
  
  <blockquote>
    <p>if(!isset($hasError)) { //$emailTo = "w_chand@live.com"; if
    (!isset($emailTo) || ($emailTo == '') ){ $emailTo =
    the_author_meta('user_email'); } $subject = 'email subject goes
    here'.$name; $body = " Name: $Name  nnDuration: $duration  nnComments:
    $comments ";</p>
    
    <p>$headers = "Reply-To: '".$name."'  rn"; if(wp_mail($emailTo,
    $subject, $body, $headers)){</p>
    
    <p>echo "Enquiry has been sent successfully";
    } else { echo "Mail function Error!"; }</p>
  </blockquote>