Created
February 21, 2016 06:25
-
-
Save codename065/3e7a43cbe2593b0dc030 to your computer and use it in GitHub Desktop.
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
$email_template = file_get_contents(LF_BASE_DIR.'emails/generic-email.html'); | |
$vars = array('[mail_headline]', '[banner_image_url]','[email_message]','[button_link]', '[button_text]'); | |
$vals = array('We Received Your Query!', 'https://www.evernote.com/l/AV3XAO0XEA9GZrYqCTRLH_IKrrz_HLOmmxwB/image.jpg', $user_email_data['message'],'http://liveforms.org/query-status/', 'Check Query Status'); | |
$email_message = str_replace($vars, $vals, $email_template); | |
wp_mail($email, $user_email_data['subject'], $email_message, $headers); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment