Guest User

Wordpress Change Mail Header

a guest
Jan 5th, 2013
798
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /*
  3. Plugin Name: Change Mail Headers
  4. Description: Change Wordpress Mail Header
  5. Author: Lynq
  6. Version: 1.0.0
  7. */
  8.  
  9. function mail_from()
  10. {
  11. $emailaddress = "email@domain.com";
  12. return $emailaddress;
  13. }
  14.  
  15. function mail_from_name()
  16. {
  17. $sendername = "Your Name";
  18. return $sendername;
  19. }
  20.  
  21. add_filter('wp_mail_from','mail_from');
  22. add_filter('wp_mail_from_name','mail_from_name');
  23.  
  24.  
  25. /*
RAW Paste Data