To prevent spamming in SMF (Simple Machines Forum), you may refer to the following methods:
a) Account activation for newly registered accounts.
b) Using “The Captcha” option for registration and login.
c) Using “Verification Questions” before proceeding with the new registration.
For more details, you can refer to this link.
If you have forgotten your SMF’s Admin Login – Check here