Change wp_mail_from wordpress

Clef two factor authentication for WordPress review

Adding this to the functions.php of your wordpress theme will change the from address in your WordPress theme.

    function from_mail($content_type) {
        return 'admin@wpsnipp.com';

Comments  Leave a Reply

  1. How to delete an address of the sender into email wordpress

  2. Too late for John, but if anyone comes across this again, to change the name the mail comes from, the filter is wp_mail_from_name. So something like:

    function from_mail_name($content_type) {
    return ‘My Business Name’;

  3. Clever, thanks.
    But the name of the email is still WordPress, any idea how to change that as well?
    function mail-name or something …

  4. Tweets that mention Wordpress Change wp_mail_from wordpress – wpsnipp.com Wordpress code snippets for your blog -- Topsy.com February 14, 2011 at 12:54 am

    […] This post was mentioned on Twitter by HTMLfrp, WPSNIPP. WPSNIPP said: #wordpress Change wp_mail_from wordpress http://bit.ly/gBG5VY #blog please RT 🙂 […]

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!