Created
May 13, 2017 20:16
-
-
Save anthonybudd/0e8705fcf02d7892a55987b823312327 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
| <?php | |
| $email = (new WP_Mail) | |
| ->to([ | |
| 'john.doe@gmail.com', | |
| 'john.doe@me.com', | |
| ]) | |
| ->cc('john.doe@yahoo.com') | |
| ->bcc([ | |
| 'john.doe@github.com', | |
| 'john.doe@medium.com', | |
| ]) | |
| ->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