lexomatic
asked 7 years ago

I am using the Pro version of the Q&A plugin. When I respond to questions that users ask, the user receives an e-mail notification. That e-mail notification lists the correct e-mail address in the “From” section, but lists “WordPress” as the sender. This is problematic because my users do not know what “WordPress” means. It should list the name of the site as the sender, or at least give me the option to customize so that my users understand that the e-mail is coming from my company. Here’s a screenshot to show  you what I’m talking about: http://imgur.com/a/XxATr

1 Answers
DominicStaff
answered 7 years ago

You can add the following code to the functions.php file:

add_filter('wp_mail_from_name', 'new_mail_from_name');
 function new_mail_from_name($old) {
return 'name';
}
lexomatic
replied 7 years ago

Just to be clear, are you saying that I should add this in my theme’s functions.php file? Once I do add this function, what e-mail address will appear as the sender?

Dominic Staff
replied 7 years ago

Yes, you can try to do that, if you have any issue please let me know, I will help you resolve it.

lexomatic
replied 7 years ago

We implemented the change as you suggested. I cannot test it, however, because the plugin is not sending e-mails to users. When I enter my address as the user, it doesn’t send me a notification that the question has been answered. Please try it yourself to confirm (https://www.deedclaim.com/questions/)

Also, I noticed that there is now (since I updated to the new version of the plugin) a “From name” field in the settings (Questions -> Settings -> Emails). If that option works, I would like to use that instead of manually overwriting using the functions.php file. I can’t test it, though, because the plugin is not sending e-mails to users at all.

Powered by DW Question & Answer Pro