I am calling mail function 2 times in my script as below. But I am not getting second email. below is my code...
    // Sending email to Client
    $toClient = $name . "<" . $email . ">";
    $header1 = 'From: Name 1 <'.$fromEmail.'>' . "\r\n" .
                'Reply-To: Owner <'.$fromEmail.'>' . "\r\n" .
                'X-Mailer: PHP/' . phpversion();
    $header1 .= "MIME-Version: 1.0\r\n";
    $header1 .= "Content-type: text/html\r\n";
    $mailSentToClient = mail($toClient, 'Email Sent to Owner', "Thank you for contacting, I will get back to you shortly. <br>\n-Owner", $header1);
    // Sending email to Owner
    $toOwner = 'Owner' . "<" . $ownerEmail . ">";
    $header2 = 'From: '.$name.' <'.$email.'>' . "\r\n" .
                'Reply-To: '.$name.' <'.$email.'>' . "\r\n" .
                'X-Mailer: PHP/' . phpversion();
    $header2 .= "MIME-Version: 1.0\r\n";
    $header2 .= "Content-type: text/html\r\n";
    $mailSentToOwner = mail($toOwner, 'New Message', $message, $header2);
Can someone tell me whats wrong with my code?
Thanks in Advance
