SMF Support > SMF 2.0.x Support
PM Guest...
Shambles:
--- Quote from: tontonlist on July 03, 2012, 11:48:38 PM ---If the guest use the contact form, their email will be received by the admin in the forum or in webmaster email add?
--- End quote ---
By default, what CapadY said.
However, I modified the downloadable contact form mod to add several other email addresses, then switched back and made it create a post in my Moderator Zone instead.
tontonlist:
Is there any other mod that the message will be directly got to admin in the forum, I don't like to check regularly the webmaster email, since the membership on my forum is by admin activation. I just to ensure there are no spammer or spam bots.
Shambles:
Why not then just implement the Contact mod and change the included file Contact.php thus:
(find)
--- Code: --- // Send email to webmaster
sendmail($webmaster_email, $mbname.' - '.$_POST['subject'], $message, $_POST['email']);
--- End code ---
(replace with)
--- Code: --- // Send email to Admin
sendmail('admin@mydomain.com', $mbname.' - '.$_POST['subject'], $message, $_POST['email']);
--- End code ---
tontonlist:
I already installed the smfcontactpage mod. I'm gonna try the code you post. Thanks for that, I really appreciate it.
By the way, the code I replace from your post, 'admin@mydomain.com' Is this the only one I need to edit, just change to my domain?
Shambles:
--- Quote from: tontonlist on July 06, 2012, 10:20:51 PM ---By the way, the code I replace from your post, 'admin@mydomain.com' Is this the only one I need to edit, just change to my domain?
--- End quote ---
Yep. For a while, I had multiple recipients
--- Code: --- // Send email to Admin
sendmail('admin1@domain1.com', $mbname.' - '.$_POST['subject'], $message, $_POST['email']);
sendmail('admin2@domain2.com', $mbname.' - '.$_POST['subject'], $message, $_POST['email']);
sendmail('admin3@domain3.com', $mbname.' - '.$_POST['subject'], $message, $_POST['email']);
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version