We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28064
    • 8 Posts
    Hi,

    i have 2 questions:

    1.

    this is my snippet call: [!WebLoginPE? &type=`register` &regType=`instant` &registerTpl=`db_register_tpl`!]
    i want to register users without verification and without having the server send an email to the supplied email address. however, everytime a user tries to
    register the following message is displayed: "An error while sending the email. Please contact the Site Administrator."

    i am developing on a local server without smtp so the message is plausible. what i dont understand is why the snipped still tries to send an email when i have
    selected "instant" regType.

    2.

    i want to add a logout button on arbitrary pages. from what i have seen so far is that a logout button is displayed when the WebLoginPE snippet is called. how can i
    implement an logout button/link for placing on arbitrary documents.

    thanks
    souls
      • 4310
      • 2,310 Posts
      By default an email gets sent out to the user, even with type = instant.
      If you look at around line 688 of assets/snippets/webloginpe/webloginpe.class.php you’ll see :
      		if ($regType != 'pending') {
      			// Replace some placeholders in the Config websignupemail message.

      So only the pending users don’t get the email.