Hello,
When I try to add new user, it throws the following error :
Traceback (innermost last):
File “lib/py/webnotes/handler.py”, line 224, in handle
execute_cmd(cmd)
File “lib/py/webnotes/handler.py”, line 256, in execute_cmd
ret = method(webnotes.form_dict.get(‘arg’))
File “erpnext/utilities/page/users/users.py”, line 111, in add_user
add_profile(args)
File “erpnext/utilities/page/users/users.py”, line 147, in add_profile
send_welcome_mail(email, args)
File “erpnext/utilities/page/users/users.py”, line 161, in send_welcome_mail
sendmail_md(pr.email, subject=“Welcome to ERPNext”, msg=welcome_txt % args, from_defs=1)
File “lib/py/webnotes/utils/email_lib/init.py”, line 47, in sendmail_md
sendmail(recipients, sender, markdown2.markdown(msg), subject, txt=msg, from_defs=from_defs)
File “lib/py/webnotes/utils/email_lib/init.py”, line 85, in sendmail
email.send(send_now)
File “lib/py/webnotes/utils/email_lib/send.py”, line 223, in send
sess = self.smtp_connect()
File “lib/py/webnotes/utils/email_lib/send.py”, line 239, in smtp_connect
sess = smtplib.SMTP(self.server.encode(‘utf-8’), cint(self.port) or None)
AttributeError: ‘NoneType’ object has no attribute ‘encode’
I tried to setup Mail settings with our online server which accepts all email in relay mode from our IP
But the error still persists.
Any potential solutions ?
Mitul Limbani
Hi,
Please specify the following in defs.py file:
mail_server =
mail_port =
mail_login =
mail_password =
use_ssl =
This should solve your problem.
Also, please post technical queries on the technical forum:
wn...@googlegroups.com
Thanks,
Anand.
On Mon, May 7, 2012 at 1:53 PM, Mitul Limbani mi...@enterux.in wrote:
Hello,
When I try to add new user, it throws the following error :
Traceback (innermost last):
File “lib/py/webnotes/handler.py”, line 224, in handle
execute_cmd(cmd)
File “lib/py/webnotes/handler.py”, line 256, in execute_cmd
ret = method(webnotes.form_dict.get(‘arg’))
File “erpnext/utilities/page/users/users.py”, line 111, in add_user
add_profile(args)
File “erpnext/utilities/page/users/users.py”, line 147, in add_profile
send_welcome_mail(email, args)
File “erpnext/utilities/page/users/users.py”, line 161, in send_welcome_mail
sendmail_md(pr.email, subject=“Welcome to ERPNext”, msg=welcome_txt % args,
from_defs=1)
File “lib/py/webnotes/utils/email_lib/init.py”, line 47, in sendmail_md
sendmail(recipients, sender, markdown2.markdown(msg), subject, txt=msg,
from_defs=from_defs)
File “lib/py/webnotes/utils/email_lib/init.py”, line 85, in sendmail
email.send(send_now)
File “lib/py/webnotes/utils/email_lib/send.py”, line 223, in send
sess = self.smtp_connect()
File “lib/py/webnotes/utils/email_lib/send.py”, line 239, in smtp_connect
sess = smtplib.SMTP(self.server.encode(‘utf-8’), cint(self.port) or None)
AttributeError: ‘NoneType’ object has no attribute ‘encode’I tried to setup Mail settings with our online server which accepts all
email in relay mode from our IPBut the error still persists.
Any potential solutions ?
Mitul Limbani