MyBB Community Forums

Full Version: E-mail form
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I run a small forums and I want everybody to be able to e-mail each other. When you send an e-mail, you will have to fill out an e-mail form and send that.

Is it possible to make the "Send *user* an e-mail"-link just a mailto: link?
'Send user an e-mail' protect your members - nobody see e-mail account. If you give mailto:... your members can have 1000 spam's per minute Wink
AlexanderM Wrote:I run a small forums and I want everybody to be able to e-mail each other. When you send an e-mail, you will have to fill out an e-mail form and send that.

Is it possible to make the "Send *user* an e-mail"-link just a mailto: link?

This requires a modification to your forum and also like what patrick_2007 it can cause spam bots to capture the email address easily
It is a small private forum, so only members that I've activated will be able to see the mailto link.

Any tips on the modification?

Is it possible to receive e-mail (as an admin) as a notification of people awaiting activation.
Quote: It is a small private forum, so only members that I've activated will be able to see the mailto link
In internet you never can be sure, that it's 100% private

Link 'send user mail' is on public page "members".
If you want, you can give link 'mail to' on the "Mail form". Or you can make private forum with link to mail alll members without code modyfing
I'll change it into mailto: link.

Anyone has any recommendations on the activation thingey? Smile

Thank you for the recommendations guys!!
Tell mi, you want send message from "Mail form", you can resign from this form and people can send messages via default mil program (e.g. Outlok)
Ok
You have 2 ways. First is very fast.
This way is without "send mail form". In the member list,
You must only change 1 template:
admin panel -> templates -> post bit templates -> postbit_email:

<a href="member.php?action=emailuser&amp;uid={$post['uid']}"><img src="{$theme['imglangdir']}/postbit_email.gif" alt="{$lang->postbit_email}" title="{$lang->postbit_email}" /></a>

and change to:

<a href="mailto:{$users['email']}"><img src="{$theme['imglangdir']}/postbit_email.gif" alt="{$lang->postbit_email}" title="{$lang->postbit_email}" /></a>
this show button like before, but under this buttons are link "mailto:.."

This working only on member list page.

if you want valid link to users mail in on any pages, you must make changes in some script Sad

in last template:
<a href="mailto:{$user_email}"><img src="{$theme['imglangdir']}/postbit_email.gif" alt="{$lang->postbit_email}" title="{$lang->postbit_email}" /></a>
inc/functions_post.php:
Find
if($post['hideemail'] != "yes" && $mybb->usergroup['cansendemail'] == "yes")
{
eval("\$post['button_email'] = \"".$templates->get("postbit_email")."\";");
}

and change this to:

if($post['hideemail'] != "yes" && $mybb->usergroup['cansendemail'] == "yes")
{
$user_email = $post['email'];
eval("\$post['button_email'] = \"".$templates->get("postbit_email")."\";");
}

[edit]: Sorry for delay Wink
AlexanderM Wrote:It is a small private forum, so only members that I've activated will be able to see the mailto link.

Any tips on the modification?

Is it possible to receive e-mail (as an admin) as a notification of people awaiting activation.

I hate to disillusion you but it makes no difference that your forum is private a spam bot/spider will pick up the mailto links anyway private or not.
Quote:I hate to disillusion you
Big Grin very hard Wink

Is one way for better protection.
AlexanderM can make this modifications, and add permissions for all forums & threads. And turn off member list Smile