Problem with Email

I am having problem with sent mail …
I configure the email and upon saving the settings no errors found … test email from outside shows the successful retrieval in erpnext but replying to that email get error in scheduler log

(535, 'Incorrect authentication data')
Traceback (most recent call last):
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/queue.py", line 306, in send_one
    smtpserver.sess.sendmail(email.sender, email.recipient, encode(email.message))
  File "/home/frappe/frappe-bench/apps/frappe/frappe/email/smtp.py", line 174, in sess
    (self.password or "").encode('utf-8'))
  File "/usr/lib/python2.7/smtplib.py", line 622, in login
    raise SMTPAuthenticationError(code, resp)
ValidationError: (535, 'Incorrect authentication data')

Are you sure you have entered correct email id and password in Email Account? And also check the Port.

1 Like

yes the email id and password are correct thats why i am receiving incoming emails in erpnext but the problem is with only sending email also i checked the port it is set correctly

Can you share screenshot of your Port setting.

1 Like

my mail settings based on the following information

Username: hello@hujra.pk
Password: Use the email account’s password.
Incoming Server: mail.hujra.pk
IMAP Port: 143
POP3 Port: 110
Outgoing Server: mail.hujra.pk
SMTP Port: 25

Check Use TLS and try.

1 Like

no luck with TLS has been checked

Your issue might not be ERPNext issue. Please read this:

i didnt get your point … how is this group mail article is linked to this issue …
i had configure my mail accounts with the same setting on mobile and pc… it works there but with the same settings in erpnext …its not working

It is an authentication issue at your end because it is working fine at our end, did few tests.

Same issue on Support Module after upgrade to V7

I am facing the same issue on centos but working on my local system with all python version.

No it’s authentication issue. Issue with smtplib package. Because same script working correctly on another server.