Forums / Developer / Email to activate accounts
David Santiso
Saturday 16 April 2011 1:18:24 pm
Hi,
The mail server is ENABLE on my server
How do I send an email automatically to activate the registered user account?
Thanks,
David
Chen Xiongjie
Monday 18 April 2011 1:52:50 am
If the email server is working, when a new user registers(after clicking register button), in normal case, an activation mail will be sent to the user's mail. Is this what you asked?
eZ Comments: http://projects.ez.no/ezcomments twitter: http://twitter.com/xiongjie
Monday 18 April 2011 5:19:15 am
Yes, but doesn't sent nothing.
Tuesday 19 April 2011 12:28:51 am
Did you change any setting like VerifyUserEmail=enabled in site.ini?
Tuesday 19 April 2011 3:52:56 am
I haven't changed anything about this, but the details are correct.
site.ini says VerifyUserEmail is deprecated, but it's enabled. It says I've to use VerifyUserType=email and is also correct.
Tuesday 19 April 2011 7:21:20 am
I've seen in class ezmailtransport.php that the sendMail function has this code by default:
function sendMail( eZMail $mail ) { return false; }
Tuesday 26 April 2011 7:45:30 am
Can you put your email setting, in settings/override/site.ini.append.php?
example:
[MailSettings]
Transport=sendmail
[email protected]
EmailSender=