Community

Login extra Register new users does not receiving emails

I have this register form but is not sending email for a reason. All the other formit forms on my site are sending emails properly. Does anyone made it work for their sites?

[[!Register?
&submitVar=`registerbtn`
&activationResourceId=`1`
&activationEmailTpl=`myActivationEmailTpl`
&activationEmailSubject=`Thanks for Registering!`
&activationEmailTplType=`modChunk`
&activation=`1`
&emailField=`email`
&submittedResourceId=`1`
&usergroups=`authenticated`
&validate=`nospam:blank,
  username:required:minLength=^6^,
  password:required:minLength=^6^,
  password_confirm:password_confirm=^password^,
  fullname:required,
  email:required:email`
&placeholderPrefix=`reg.`
&successMsg=`Your registration was successful`

]]

[[*pagetitle]]

[[!+reg.error.message]]
    <div class="form-group">
        <input type="hidden" name="nospam" value="[[!+reg.nospam]]" />
 
        <div class="form-group">
          <label class="control-label col-sm-5" for="username">[[%register.username? &namespace=`login` &topic=`register`]]
            <span class="error">[[!+reg.error.username]]</span>
          </label>
          <div class="col-sm-7">
            <input class="form-control" type="text" name="username" id="username" value="[[!+reg.username]]" />
          </div>
        </div>
        
        <div class="form-group">
          <label class="control-label col-sm-5" for="password">[[%register.password? &namespace=`login` &topic=`register`]]
            <span class="error">[[!+reg.error.password]]</span>
          </label>
          <div class="col-sm-7">
            <input class="form-control" type="password" name="password" id="password" value="[[!+reg.password]]" />
          </div>
        </div>
 
 
        <div class="form-group">
          <label class="control-label col-sm-5" for="password_confirm">[[%register.password_confirm? &namespace=`login` &topic=`register`]]
            <span class="error">[[!+reg.error.password_confirm]]</span>
          </label>
          <div class="col-sm-7">
            <input class="form-control" type="password" name="password_confirm" id="password_confirm" value="[[!+reg.password_confirm]]" />
          </div>
        </div>
        
        <div class="form-group">
          <label class="control-label col-sm-5" for="fullname">[[%register.fullname? &namespace=`login` &topic=`register`]]
            <span class="error">[[!+reg.error.fullname]]</span>
          </label>
          <div class="col-sm-7">
            <input class="form-control" type="text" name="fullname" id="fullname" value="[[!+reg.fullname]]" />
          </div>
        </div>
      
        <div class="form-group">
          <label class="control-label col-sm-5" for="email">[[%register.email? &namespace=`email` &topic=`register`]]
            <span class="error">[[!+reg.error.email]]</span>
          </label>
          <div class="col-sm-7">
            <input class="form-control" type="email" name="email" id="email" value="[[!+reg.email]]" />
          </div>
        </div>
 
        <br class="clear" />
 
        <div class="form-group">        
            <div class="col-sm-offset-2 col-sm-10">
                <input type="submit" name="registerbtn"  class="btn btn-default" value="Register" />
            </div>
        </div>
 
    </div>
</form>

Double check chunknames, try default chunks, check spam, try default examples. I also believe there is a extra from BobRay which is used to subscribe to a newsletter. Nice thing about it is, it setup everything automatically and if you tweak it to your needs it will work just as you wish.

Its not working. I’ve tried everything from the above and even more. Did Anyone make it work?

Did you try this one?

https://modx.com/extras/package/usersubscriptionsignupsystem

Login can be a bit finicky. What you want to do is start with the basic example, make sure it works, then add in the extra variables, one by one, testing each time to make sure its still working.

One good thing is, once its done its done.

Are there any errors in the error log?

1 Like

The snippet call looks right. Please check wether the HTML is valid. Your code misses a starting form tag.

My extra is Subscribe. It wraps the Register snippet, but it may or may not meet your needs. It’s mainly designed to let users unsubscribe, and manage their preferences for which email notices to receive when used with the Notify extra, which sends the emails.