SMF Support > SMF 1.1.x Support
How to disable email sending when registering
(1/1)
icyfred:
Hi!
I'd like to know if it is possible to disable email sending when a user is registering.
If it is enabled and a user is registering, it gets an error that it can't contact the mail server (fsockopen(): unable to connect to smtp.xxxxx.com)
Indeed, i've installed SMF 1.0 Beta 4.1 Public on our intranet but we'd like not to use sendmail or smtp email sending.
I've seen in the administration interface that it's possible to disable sending messages.
If someone could help.
Thanks a lot.
icyfred
[Unknown]:
I guess the easiest solution to this problem would be for you to just stop it from sending email completely.
Sources/Subs-Post.php, find:
--- Code: ---global $webmaster_email, $context, $modSettings, $txt;
--- End code ---
Add after:
--- Code: ---return true;
--- End code ---
There, it will never send email again ;).
-[Unknown]
icyfred:
OK thanks guy! ;)
I changed this option "Send welcome email to users when you do not have mail password turned on?" off and it's ok now.
I didn't see when i set up smf.
Thanks
icyfred
icyfred:
ok thanks [Unknown] Lead Developer
I finally put your advice : return true;
Thanks.
Navigation
[0] Message Index
Go to full version