Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add branding to the WordPress system emails #1

Open
TimBHowe opened this issue Mar 10, 2014 · 1 comment
Open

Add branding to the WordPress system emails #1

TimBHowe opened this issue Mar 10, 2014 · 1 comment

Comments

@TimBHowe
Copy link
Member

So by default all emails sent using the wp_mail functions, such as new users emails, have the default sender name as "WordPress" and the default sender email address as [email protected]

I suggest we add the following to the base_functions file to allow for banded names:

// Update WordPresses wp_mail from address
add_filter( 'wp_mail_from', 'custom_wp_mail_from' );
function custom_wp_mail_from( $original_email_address ){
    //Make sure the email is from the same domain
    //as your website to avoid being marked as spam.
    return get_option('admin_email');
}

// Update WordPresses wp_mail from name
add_filter( 'wp_mail_from_name', 'custom_wp_mail_from_name' );
function custom_wp_mail_from_name( $original_email_from ){
    return get_option('blogname');
}

Referance: http://codex.wordpress.org/Function_Reference/wp_mail

We should also discuss how we can keep the admin_email for the site as [email protected] but allow a banded email, exmaple [email protected], to be used.

@TimBHowe
Copy link
Member Author

We need to add an admin panel to to allow from email and name to be set and tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant