MyBB Community Forums

Full Version: send Email to Admin via code(mybb php code designation for admin email)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
What is mybb php code designation for the admins email?

I want to send an email to the admin via code in a plugin.

I'm sending it to a user this way:

my_mail($user_info['email'], $subject, $message);

but how would I also send to admin?
my_mail($user_info['email'], $subject, $message);
my_mail($mybb->settings['adminemail'], $subject, $message);

That should suffice.
Worked perfectly, Thanks