Last active
August 29, 2015 14:28
-
-
Save wisecrab/cb021849eeff0efe5d13 to your computer and use it in GitHub Desktop.
A simple function and variable set group to send an email from WordPress.
This file contains hidden or 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
| $to = 'email@example.com'; | |
| $subject = 'This is the email subject'; | |
| $message = 'Here is my email message.'; | |
| $headers = 'From: My Name <myname@example.com>' . "\r\n"; | |
| $headers .= "Reply-To: myname@example.com \r\n"; | |
| $attachments = ''; | |
| wp_mail( $to, $subject, $message, $headers, $attachments ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment