You should be able to throw this in before the return, building the variables first. <?php wp_mail( $to, $subject, $message, $headers, $attachments ); ?>
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.