• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Foreign character in username making emails fail

CTXMedia

Formerly CyclingTribe
#1
Getting these in my server error log in XF 1.1.1 - Zend_Mail_Transport_Exception: Unable to send mail. - library/Zend/Mail/Transport/Sendmail.php:137

Code:
#0 /home/cyclechat/public_html/library/Zend/Mail/Transport/Abstract.php(348): Zend_Mail_Transport_Sendmail->_sendMail()
#1 /home/cyclechat/public_html/library/Zend/Mail.php(1194): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail))
#2 /home/cyclechat/public_html/library/XenForo/Mail.php(170): Zend_Mail->send()
#3 /home/cyclechat/public_html/library/XenForo/Mail.php(145): XenForo_Mail->sendMail(Object(Zend_Mail))
#4 /home/cyclechat/public_html/library/XenForo/Mail.php(197): XenForo_Mail->send('bobcolover@easy...', 'bobcolover\', Array, '', '', '')
#5 /home/cyclechat/public_html/library/XenForo/Model/ThreadWatch.php(234): XenForo_Mail->queue('bobcolover@easy...', 'bobcolover\')
#6 /home/cyclechat/public_html/library/XenForo/DataWriter/DiscussionMessage/Post.php(108): XenForo_Model_ThreadWatch->sendNotificationToWatchUsersOnReply(Array, NULL, Array)
#7 /home/cyclechat/public_html/library/XenForo/DataWriter.php(1399): XenForo_DataWriter_DiscussionMessage_Post->_postSaveAfterTransaction()
#8 /home/cyclechat/public_html/library/XenForo/ControllerPublic/Thread.php(505): XenForo_DataWriter->save()
#9 /home/cyclechat/public_html/library/XenForo/FrontController.php(310): XenForo_ControllerPublic_Thread->actionAddReply()
#10 /home/cyclechat/public_html/library/XenForo/FrontController.php(132): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
#11 /home/cyclechat/public_html/index.php(13): XenForo_FrontController->run()
#12 {main}
Which seem to be all to the same user: bobcolover\ <--- note the backslash on the username

Firstly, could someone confirm if they've seen similar issues when someone includes a foreign character in their username?

Secondly, can we define only alpha-num characters for username?

Thanks,
Shaun :D
 

Jake Bunce

XenForo moderator
Staff member
#2
Firstly, could someone confirm if they've seen similar issues when someone includes a foreign character in their username?
Yep. See this thread:

http://xenforo.com/community/threads/confirmation-email-problem.25355/

Secondly, can we define only alpha-num characters for username?
Yes:

Admin CP -> Home -> Options -> User Registration -> User Name Match Regular Expression

This regex will match only alphanumeric characters:

Code:
^[a-zA-Z0-9]+$