Created
August 5, 2016 19:43
-
-
Save cmunns/f21389995a5547aad7e97ad8f005cf4b to your computer and use it in GitHub Desktop.
send mail wp_mail
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$email = (isset($_POST['email']) ? $_POST['email'] : ''; | |
$sendTo = '[email protected]'; | |
$headers = 'From: '.$email.'' . "\r\n\\"; | |
if( $email != '' ) { | |
wp_mail($sendTo,'NaturVet.com Newsletter Subscriber', 'Please add '.$email.' to the NaturVet email list.', $headers); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment