Skip to content

Instantly share code, notes, and snippets.

@jarednova
Created September 25, 2013 14:26
Show Gist options
  • Save jarednova/6700415 to your computer and use it in GitHub Desktop.
Save jarednova/6700415 to your computer and use it in GitHub Desktop.
<h1>Congratulations to {{name}}</h1>
<p>You're really great so we're giving you a prize of {{prize}}</p>
my_ajax_mail_function(){
$data['name'] = 'My User Name';
$data['prize'] = 'Vacation to Paris';
$message = Timber::render('message.twig, $data, false);
wp_mail("user@gmail.com", "You win a Prize!", $message);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment