Automessage - Send from user


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

  • Rupok
    • Support Ninja

    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.

    add_filter('wp_mail_from', 'new_mail_from');
    add_filter('wp_mail_from_name', 'new_mail_from_name');
    function new_mail_from($email) {
     return '';
    function new_mail_from_name($email) {
     return 'Your Awesome Website';

    For getting more idea on mu plugins, you can go through this article:

    Please replace "" 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:

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

    Have a nice day. Cheers!

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.