
Tom P
User

Jan 4, 2012, 11:15 AM
Post #2 of 9
(1262 views)
Shortcut
|
|
Re: [kovali] E-mailaddresses (with underscore) registration problem
[In reply to]
|
Can't Post
|
|
Hello Koen, When users submit a form to signup with the Website Membership plugin, the email verification function built in to CMSB does permit underscores in the address. Since users signing up aren't being told their email address isn't valid, the problem must be occurring when the email is being sent. To find the problem, check the email being sent (the following is roughly what you're looking for)
// send message $emailTemplate = "emails/user-new-signup.php"; $emailHeaders = emailTemplate_load(array( 'template' => websiteLogin_pluginDir() . "/$emailTemplate", 'subject' => '', // set in template 'from' => '', // set in template 'to' => $_REQUEST['email'], 'placeholders' => array( 'username' => array_key_exists('username', $_REQUEST) ? $_REQUEST['username'] : $_REQUEST['email'], // if using email as username then show that instead 'password' => $_REQUEST['password'], 'loginUrl' => "http://" . $_SERVER['HTTP_HOST'] . $GLOBALS['WEBSITE_LOGIN_LOGIN_FORM_URL'], ), )); $mailErrors = sendMessage($emailHeaders); if ($mailErrors) { die("Mail Error: $mailErrors"); } The email address provided by the user when completing the form is used as the 'to' address and so shouldn't be undergoing any modification. If you can't find the problem, post/attach your code here (just the form processing part) and we can have a closer look. Hope this helps, Tom
|