Forums / Developer / Email to activate accounts

Email to activate accounts

Author Message

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

David Santiso

Monday 18 April 2011 5:19:15 am

Yes, but doesn't sent nothing.

Chen Xiongjie

Tuesday 19 April 2011 12:28:51 am

Did you change any setting like VerifyUserEmail=enabled in site.ini?

eZ Comments: http://projects.ez.no/ezcomments
twitter: http://twitter.com/xiongjie

David Santiso

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.

David Santiso

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;
}

Chen Xiongjie

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

AdminEmail=xxx@xxx.xx

EmailSender=

eZ Comments: http://projects.ez.no/ezcomments
twitter: http://twitter.com/xiongjie

eZ debug

Timing: Jan 18 2025 02:02:28
Script start
Timing: Jan 18 2025 02:02:28
Module start 'content'
Timing: Jan 18 2025 02:02:28
Module end 'content'
Timing: Jan 18 2025 02:02:29
Script end

Main resources:

Total runtime0.9567 sec
Peak memory usage4,096.0000 KB
Database Queries70

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 588.7813181.6719
Module start 'content' 0.00750.9419 770.4531576.9219
Module end 'content' 0.94950.0072 1,347.375046.1094
Script end 0.9567  1,393.4844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3431140.0002
Check MTime0.00130.1309140.0001
Mysql Total
Database connection0.00070.075110.0007
Mysqli_queries0.898193.8705700.0128
Looping result0.00060.0595680.0000
Template Total0.921796.320.4609
Template load0.00190.199820.0010
Template processing0.919896.138720.4599
Template load and register function0.00020.018610.0002
states
state_id_array0.00090.098510.0009
state_identifier_array0.00100.105620.0005
Override
Cache load0.00160.1711340.0000
Sytem overhead
Fetch class attribute can translate value0.00080.080720.0004
Fetch class attribute name0.00160.168280.0002
XML
Image XML parsing0.00070.071520.0003
class_abstraction
Instantiating content class attribute0.00000.0027100.0000
General
dbfile0.00330.3417180.0002
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
2content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 8

Time used to render debug report: 0.0001 secs