SID-00566: How to register new user without sending any emails
Status: |
Answered |
TWiki version: |
4.3.2 |
Perl version: |
5.10.1.1006 |
Category: |
CategoryEmail |
Server OS: |
Windows XP |
Last update: |
12 years ago |
I am new to TWiki. I have correct all the warnings and errors in Configure.
As I don't know the company's SMTP address, I used a free mail vendors smtp server. I got the errors when submit the register form:
Warning: Could not send confirmation email
ERROR: Can't send mail using Net::SMTP. Can't connect to "smtp.gmail.com" at D:/TWiki/lib/TWiki/Net.pm line 450. Too many failures sending mail
You are NOT logged-in and your account is, or soon will be deactivated.
Your e-mail address must be valid to register successfully.
I setup the mail setting as below:
{MailProgram} /usr/sbin/senmail -t -oi -oeq
{SMTP}{MAILHOST} smtp.gmail.com
{SMTP}{SENDERHOST} smtp.gmail.com
{SMTP}{Username} samuel.gao
{SMTP}{Password} pass123
I am wondering if TWiki can successfully register a new user without sending any emails?
How can I make the registered user be able to login? Which file can I mod to achieve login?
Thanks
--
SamuelGao - 2009-10-12
Discussion and Answer
To allow registration without email confirmation uncheck {Register}{NeedVerification} in configure script (
http://yourtwikisite/twiki/bin/configure)
--
EnriqueCadalso - 2009-10-12
Try
localhost
for
{SMTP}{MAILHOST}
Leave
{SMTP}{SENDERHOST}
,
{SMTP}{Username}
and
{SMTP}{Password}
empty
--
PeterThoeny - 2009-10-12
Hi, Peter,
I have done setup as you said, but I still got the error:
Warning: Could not send confirmation email
ERROR: Can't send mail using Net::SMTP. 5.7.1 Unable to relay for
samuel.gao@bleumPLEASENOSPAM.com Too many failures sending mail\n\nYou are NOT logged-in and your account is, or soon will be deactivated.\nYour e-mail address must be valid to register successfully.
I also uncheck the {Register}{NeedVerification}, but the same result.
I also tried to disable the email, uncheck {EnableEmail}, it will have the error below:
Warning: Could not send confirmation email, email has been disabled
Then I tried to login with the account I just registered, but could not. Then I tried to reset the password and got the folloing error:
Password reset failed
Email has been disabled for this TWiki installation
I am working under Windows, so I am wondering how to setup {MailProgram} value, as "/usr/sbin/sendmail -t -oi -oeq" is for Unix. Now I am using "{MailProgram} Net::SMTP".
Thanks
--
SamuelGao - 2009-10-13
To use SMTP from google the full full mail address must be used in the login name, that is
samuel.gao@bleumPLEASENOSPAM.com, and not just samuel.gao.
{SMTP}{MAILHOST}: smtp.gmail.com
{SMTP}{SENDERHOST}: your ip
{SMTP}{Username}:
samuel.gao@gmailPLEASENOSPAM.com
{SMTP}{Password}: your google account password
--
EnriqueCadalso - 2009-10-13
What is the value of {MailProgram} in Windows?
--
SamuelGao - 2009-10-14
You either use
{MailProgram}
or {SMTP}{MAILHOST}
, not both. The former uses an external mail program (Unix based
sendmail
in this example), the latter uses the Perl module
CPAN:Net::SMTP to send mail. On Windows try to use
{SMTP}{MAILHOST}
.
--
PeterThoeny - 2009-10-14
Hi, I'm am trying to register new users on my newly installed twiki (used
http://twiki.org/cgi-bin/view/Codev/TWikiOnUbuntu auto-install)
following settings:
{SMTP}{MAILHOST}: smtp.gmail.com
{SMTP}{SENDERHOST}: smtp.gmail.com
{SMTP}{Username}:
myname@gmailPLEASENOSPAMPLEASENOSPAM.com
{SMTP}{Password}: your google account password
I am getting errors in the server error.log:
[Fri Oct 16 14:43:38 2009] [error] [client XXX.XXX.XXX.XXX] Net::SMTP=GLOB(0x8ca00dc)<<< 530 5.7.0 Must issue a STARTTLS command first. 22sm1018865pxi.14, referer:
http://localhost/cgi-bin/twiki/view/TWiki/TWikiRegistration
any recommendations on how to send these registration emails on an account which uses TLS encryption?
--
EvanHohert - 2009-10-16
Note: I have fixed my issue by using the default "sendmail" application in the {Mailprogram} field and not using Net::SMTP. oh well.
--
EvanHohert - 2009-10-16
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
PeterThoeny - 2009-12-03
I manually edited the /twiki/twiki/lib/twiki.cfg file
# **BOOLEAN**
# <span class="twikiAlert">EXPERT</span> Whether registrations must be verified by the user following
# a link sent in an email to the user's registered email address
$cfg{Register}{NeedVerification} = $FALSE;
the $cfg{Register}{NeedVerification} was $TRUE, but i changed it to false
--
TWikiGuest - 2011-12-28
Thanks Jay for posting this tip. This is the
{Register}{NeedVerification}
setting in configure.
BTW, please register with your full first name last name.
--
PeterThoeny - 2011-12-29
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.