Use the wp_mail() functions. These functions let you use built-in WordPress awesomeness to send emails to users.$message = 'Hello, thanks for reading my post! I hope to see you back soon.'; wp_mail( 'someonesemail@example.com', 'Thanks for reading my post!', $message);

You can also send HTML content by using a filter:add_filter ("wp_mail_content_type", "smashing_mail_content_type"); function smashing_mail_content_type() { return "text/html"; }
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.