WordPress.org

Ready to get started?Download WordPress

Forums

Email Address Encoder
[resolved] Email subject wrong (8 posts)

  1. samiguel
    Member
    Posted 1 year ago #

    When email gets sent this is how it looks in inbox:
    From: WordPress <wordpress@hu20.co.uk>

    I don't know how to set it to something along the lines of:
    From: Hu20 <contact@hu20.co.uk>

    I have set up an email through cpanel as contact@hu20.co.uk and also installed plugin Configure SMTP

    Can anyone shed some light on this please/

    Many thanks

    Sam

    http://wordpress.org/extend/plugins/email-address-encoder/

  2. Till
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Sam!

    This is unrelated to the Email Address Encoder plugin, check out this code.

  3. samiguel
    Member
    Posted 1 year ago #

    Hi Till, do I just add it or paste it over an existing piece of code?

    Came across these 3 folders (Which one?)

    wp-admin
    wp-content
    wp-includes -
    functions.php
    functions.wp-script.php
    functions.wp-styles.php

    Thanks Till

    Sam

  4. Till
    Member
    Plugin Author

    Posted 1 year ago #

    I'd place the code in a must use plugin: http://codex.wordpress.org/Must_Use_Plugins

  5. samiguel
    Member
    Posted 1 year ago #

    Hi Till, right I read up on the Must_Use_Plugins and for a novice this is what I did:

    Copied plugin.php from wp-admin/includes/plugin.php

    pasted it in wp-content and named it must-use-plugin.php and copied

    }
    add_filter('wp_mail_from', 'new_mail_from');
    add_filter('wp_mail_from_name', 'new_mail_from_name');

    function new_mail_from($old) {
    return 'contact@hu20.co.uk';
    }
    function new_mail_from_name($old) {
    return 'Hu20 Info';
    }

    Can you assist please Till

    Many thanks

    Sam

  6. Till
    Member
    Plugin Author

    Posted 1 year ago #

    Create a empty file: /wp-content/mu-plugins/email-settings.php and paste the code from that article in it.

  7. samiguel
    Member
    Posted 1 year ago #

    Thanks Till It works Great many thanks.

    Quick one Till, when customer receives email the content just has password and email, I find this rather bland and empty to adding a new customer.

    If you can help, how do I input a thank you for registering message with login detail and password like this:

    Welcome and thank you for registering at HU20!

    Your account has now been created and you can log in by using your email address and
    password by visiting our website or at the following URL:
    http://www.hu20.co.uk

    Upon logging in, you will be able to access other services including updating business details, upload images and adding new posts to your page.

    Thanks,
    HU20

    Thanks again Till

  8. Till
    Member
    Plugin Author

    Posted 1 year ago #

    Try this or that plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic