Automessage - Send from user

Hi,

Is it possible to change the send from user for the Automessage plugin?

    Rupok

    Hi Huy Le,

    By default, Automessage uses default WordPress email address, but you can change that by creating a MU Plugin. For creating a MU Plugin, create a folder named "mu-plugins" inside your "wp-content" folder. Then inside that "mu-plugins" folder, create a file with any name and with a .php extension. Now paste the code inside that file and save.

    <?php
    add_filter('wp_mail_from', 'new_mail_from');
    add_filter('wp_mail_from_name', 'new_mail_from_name');
    
    function new_mail_from($email) {
     return 'you@yoursite.com';
    }
    function new_mail_from_name($email) {
     return 'Your Awesome Website';
    }

    For getting more idea on mu plugins, you can go through this article: http://premium.wpmudev.org/manuals/wpmu-manual-2/using-mu-plugins/

    Please replace "you@yoursite.com" with your desired email address and replace "Your Awesome Website" with your desired From Name.

    Of you can simply install a third party plugin for changing default email sending address and name: https://wordpress.org/plugins/wp-change-default-email/

    Please let us know if you have any further inquiry. We will be glad to help.

    Have a nice day. Cheers!
    Rupok