-
-
Save johnny13/d177dc3e54105e9f36d9abbfc4b1f930 to your computer and use it in GitHub Desktop.
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
<?php | |
$email = (new WP_Mail) | |
->to('john.doe@gmail.com') | |
->subject('WP_Mail is great!') | |
->template(get_template_directory() .'/emails/demo.html', [ | |
'name' => 'John Doe', | |
'location' => 'London', | |
'link' => 'http://github.com/anthonybudd/WP_Mail' | |
]) | |
->send(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment