Support Forum

Email Sender Name

18 Answers

New Answer

BB Brad Besner
Brad Besner
Member

I ran the current update on simple:press to 5.3.1 and I’m getting the same issue again. I changed the priority on sp_mail_filter_from in sp-api-primitives.php back to 500 and after testing the sender name is showing as WordPress again. I then changed it to 1000000 to see if a higher priority would do the trick and it still doesn’t work.

 Is there something else that was changed in the update that would cause this?

The only other plugin which has wp_mail_from is wp-db-backup but I didn’t see anything about priorities on it.

Does anyone have a suggestion on what may fix this after the update?

MP Mr Papa
Mr Papa
Member

We didnt change anything regarding the email filters in our version… but we are in the process of checking if wp changed something in 3.6 that might require plugins to make an update…

BB Brad Besner
Brad Besner
Member

I ended up just going into wp-includes->pluggable.php and changed line 309 from $from_name = WordPress’; to $from_name = ‘Security Camera King’;.

From what I understand, any plugin now which may use the default from name will always use our company name instead of “WordPress” hopefully this solves our issues with any further updates.

Do you know if this file updates whenever there is a wordpress update? If so, I’ll always have to go back here and make the change every time WP has an update.

YS Yellow Swordfish
Yellow Swordfish
Member

Yes – you would need to redo the change.

However – all the WP functions in the pluggable file can be replaced with your own so you could simply provide an alternative function and that will be used instead. Then it is safe from updates. Pluggable functions are covered on the WordPress codex if you want to try that route.