Advertisement
Guest User

Untitled

a guest
Feb 12th, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. $headers = array(
  2. 'From: My Name <test12df432abc@gmail.com>'
  3. );
  4. $headers = implode( PHP_EOL, $headers );
  5. wp_mail( $to, $subjects, $message, $headers );
  6.  
  7. $headers = array(
  8. 'Bcc: secretuser123@aol.com',
  9. 'From: My Name <test12df432abc@gmail.com>',
  10. 'Reply-To: webmaster@hotmail.com'
  11. );
  12. $headers = implode( PHP_EOL, $headers );
  13. wp_mail( $to, $subjects, $message, $headers );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement