Hello,
I've problem when using Extended Users. It cannot send email when someone register into my site.
Here's my register code:
Thanks in advance.
I've problem when using Extended Users. It cannot send email when someone register into my site.
Here's my register code:
- Code: Select all
<cms:if k_logged_in >
<!-- what is an already logged-in member doing on this page? Send back to homepage. -->
<cms:redirect k_site_link />
</cms:if>
<!-- are there any success messages to show from previous actions? -->
<cms:set success_msg="<cms:get_flash 'success_msg' />" />
<cms:if success_msg >
<div class="alert alert-success fade in">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
<div class="notice">
<cms:if success_msg='1' >
Your account has been created successfully and we have sent you an email.<br />
Please click the verification link within that mail to activate your account.
<cms:else />
Activation was successful! You can now log in!<br />
<a href="<cms:login_link redirect=k_site_link />">Login</a>
</cms:if>
</div>
</div>
<cms:else />
<!-- now the real work -->
<cms:set action="<cms:gpc 'act' method='get'/>" />
<!-- is the visitor here by clicking the account-activation link we emailed? -->
<cms:if action='activate' >
<h1>Activate account</h1>
<cms:process_activation />
<cms:if k_success >
<cms:set_flash name='success_msg' value='1' />
<cms:redirect k_page_link />
<cms:else />
<cms:show k_error />
</cms:if>
<cms:else />
<!-- this ia regular databound-form -->
<cms:form style="color:white" class="form-signin" masterpage=k_user_template
mode='create'
enctype='multipart/form-data'
method='post'
anchor='0'
>
<h1 class="form-signin-heading">Register</h1>
<cms:if k_success >
<cms:db_persist_form
_invalidate_cache='0'
k_page_name = k_user_title
/>
<cms:if k_success >
<cms:send_mail from='<cms:php>echo K_EMAIL_FROM;</cms:php>' to=frm_extended_user_email subject='New Account Confirmation' debug='1'>
Please click the following link to activate your account:
<cms:activation_link frm_extended_user_email />
Thanks,
Website Name
</cms:send_mail>
<cms:set_flash name='success_msg' value='2' />
<cms:redirect url='/users/profile.php' />
</cms:if>
</cms:if>
<cms:if k_error >
<font color='red'><cms:each k_error ><cms:show item /><br /></cms:each></font>
</cms:if>
<br>
<cms:input style="height:45px" class="form-control" placeholder="Username" name='k_page_title' type='bound' />
<cms:input style="height:45px;border-radius: 0px 0px 0px 0px;box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);" class="form-control" placeholder="Email" name='extended_user_email' type='bound' />
<cms:input style="height:45px;border:none;border-radius: 0px 0px 0px 0px;" class="form-control" placeholder="Password" name='extended_user_password' type='bound' />
<cms:input style="height:45px;border:none;border-radius: 0px 0px 3px 3px;" class="form-control" placeholder="Ulangi Password" name='extended_user_password_repeat' type='bound' />
<br>
<input style="height:45px" class="btn btn-lg btn-primary btn-block" type="submit" name="submit" value="Buat Akun"/>
<!-- optionally display links for 'Create account' and 'Lost password' -->
<p></p>
<span style="font-weight:bold">
<cms:if k_user_registration_template >
Punya akun? <a href="<cms:link k_user_login_template />" />Login disini</a> <br>
</cms:if>
</span>
<hr>
Dengan melakukan Pendaftaran di website <strong>"Desain360.com"</strong> , kami berhak untuk mengakses akun anda tanpa pemberitahuan sebelumnya dengan tujuan keamanan.
<p></p>
<a href="<cms:show k_site_link/>"><i class="fa fa-angle-left" aria-hidden="true"></i> Kembali ke halaman utama</a>
</cms:form>
</cms:if>
</cms:if>
Thanks in advance.