question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sendgrid smtp not working

See original GitHub issue

Information about bug

I’ve set all smtp settings for sendgrid but it doesn’t work. It is showing error “Invalid outgoing mail server or port”, so that system is not saving this account. But when I’m checking “Awaiting password” this checkbox, It is saving account detail. but account is saving as inactive. But when I’m checking “Enable Incoming” it is saving as active but I am unable to select in from list.

Module

CRM, integrations

Version

Installed Apps ERPNext: v13.28.0 Frappe Framework: v13.28.0

Installation method

manual install

Relevant log output / Stack trace / Full Error Message.

pull_from_email_account

Traceback (most recent call last):
  File "apps/frappe/frappe/utils/background_jobs.py", line 134, in execute_job
    method(**kwargs)
  File "apps/frappe/frappe/email/doctype/email_account/email_account.py", line 959, in pull_from_email_account
    email_account.receive()
  File "apps/frappe/frappe/email/doctype/email_account/email_account.py", line 347, in receive
    emails = email_server.get_messages()
  File "apps/frappe/frappe/email/receive.py", line 138, in get_messages
    if not self.connect():
  File "apps/frappe/frappe/email/receive.py", line 75, in connect
    return self.connect_pop()
  File "apps/frappe/frappe/email/receive.py", line 110, in connect_pop
    self.pop.pass_(self.settings.password)
  File "/usr/lib/python3.8/poplib.py", line 216, in pass_
    return self._shortcmd('PASS %s' % pswd)
  File "/usr/lib/python3.8/poplib.py", line 179, in _shortcmd
    return self._getresp()
  File "/usr/lib/python3.8/poplib.py", line 155, in _getresp
    raise error_proto(resp)
poplib.error_proto: b'-ERR [AUTH] Username and password not accepted.'

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
phot0ncommented, Jul 2, 2022

Hey, the error that’s being shown is of poplib …not smtplib - are you sure things are correctly configured?

0reactions
phot0ncommented, Aug 23, 2022

closing. please reopen if the configuration is correct and the issue still persists.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Send an SMTP Email | Twilio - SendGrid Documentation
Next, add the email that you're sending from using the SMTP MAIL FROM command and press Enter.
Read more >
mail not send via SMTP API using sendgrid - Stack Overflow
When connecting to SendGrid via SMTP using API Keys, you need to use apikey ... If not, try a different port as recommended...
Read more >
Troubleshooting the SendGrid SMTP Integration - GridPane
1. Emails are Landing in Junk/Spam or Being Outright Rejected · 2. Your Provider is Blocking Outgoing Mail · 3. Enable WP_DEDUG ·...
Read more >
Unable to send email using smtp.sendgrid.net with Email ...
The original client was unable to send emails using smtp.sendgrid.net through both email campaigns and the API.
Read more >
How to Configure SendGrid SMTP | Cloudways Help Center
First of all, you need to get your SendGrid username and password that can be used while integrating SendGrid SMTP with your Cloudways...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found