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 may refer to the Default Spam Prevention.
check here if you have forgotten your SMF’s Admin Login.