2121 pointsLike some sort of WPMU DEV God"Mindblowingly helpful memberLifetime member
Ovidiu
Member
—
25th July 2011 19:36
I am trying to get a plugin author to make his plugin multisite compatible and there is a little problem I am hitting here: I'd like this plugin to use the blog owner's username in the FROM user field for emails sent and his email in the FROM email field.
I am trying to get a plugin author to make his plugin multisite compatible and there is a little problem I am hitting here: I'd like this plugin to use the blog owner's username in the FROM user field for emails sent and his email in the FROM email field.
yeah, but I'm talking about multisite so usually its no very tech-savvy people creating free blogs and I think rarely are there several admins to them...
anyway, the plugin author said he'll give it a shot using the blog-name...
I do get your point about multiple admins BUT get_bloginfo(admin_email) delivers a specific email address and only one per blog. why isn't there a feature to also deliver the username connected with this email address?
Anyway, thanks for pitching in, I just hoped there was a trick to make this happen I wasn't aware of :-)
Responses (5)
Sales & Support Pro — 25th July 2011 19:45 #
Hmmm... difficulty with that is going to be figuring who is the actual blog owner seeing as a single blog can have multiple admins.
Perhaps you could loop through the users for that blog and see which user has a matching e-mail address?
Phil
Member — 25th July 2011 19:49 #
any of the admins would do :-)
I'm talking about teh subscribe to comments reloaded plugin.
after network activation, the settings point to send emails from:
username: admin
email: blog owner's email
and that would mean, thousands of emails coming from admin :-(
I just don't get it why there is get_bloginfo() which can get me the following:
but not the admin user name???
I suggested using
but then what if a user uses a very long title that include characters not allowed in email names, according to the SMTP protocol?Sales & Support Pro — 25th July 2011 19:57 #
I see your point. It's a difficult one - blogs are not always just one user.
Think about WPMU.org for example - whose name would we put on those e-mails?
Personally, I'd favour the site name but I get the characters thing. Could you not strip those out in a graceful way?
Phil
Member — 25th July 2011 20:00 #
yeah, but I'm talking about multisite so usually its no very tech-savvy people creating free blogs and I think rarely are there several admins to them...
anyway, the plugin author said he'll give it a shot using the blog-name...
I do get your point about multiple admins BUT get_bloginfo(admin_email) delivers a specific email address and only one per blog. why isn't there a feature to also deliver the username connected with this email address?
Anyway, thanks for pitching in, I just hoped there was a trick to make this happen I wasn't aware of :-)
Sales & Support Pro — 25th July 2011 20:07 #
No probs :)
I'm wondering if actually the blog name will usually be the username they use anyway? Or could you force that to be the case?
Just thinking out loud... good luck with it!
Become a member