Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
$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!', '', $user_email_data['message'],'', '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
You can’t perform that action at this time.