Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gmail Sent email LIMIT
#4
(Apr-27-2021, 08:29 AM)snippsat Wrote: Fixed your code tag look at BBCode
Add this to see the actual smtp conversation before it raise error.
server = smtplib.SMTP('smtp.gmail.com', 587)
server.set_debuglevel(1)
server.ehlo()

thanks for that line of code.
I have the login in the loop so the message is saying too many login attempt.

I move the login code out of the loop and now I got another error message.


Error:
File "<ipython-input-56-9108101ba83e>", line 24, in <module> server.sendmail(gmail_sender, [TO], BODY) File "C:\ProgramData\Anaconda3\lib\smtplib.py", line 871, in sendmail raise SMTPSenderRefused(code, resp, from_addr) SMTPSenderRefused: (421, b'4.7.0 Try again later, closing connection. (MAIL) a189sm523022qkd.46 - gsmtp',
Reply


Messages In This Thread
Gmail Sent email LIMIT - by Johnse - Apr-27-2021, 02:11 AM
RE: Gmail Sent email LIMIT - by snippsat - Apr-27-2021, 08:29 AM
RE: Gmail Sent email LIMIT - by Johnse - Apr-28-2021, 07:50 PM
RE: Gmail Sent email LIMIT - by DeaD_EyE - Apr-27-2021, 02:35 PM
RE: Gmail Sent email LIMIT - by Johnse - Apr-28-2021, 07:52 PM
RE: Gmail Sent email LIMIT - by snippsat - Apr-28-2021, 10:19 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Extract PDF Attachment from Gmail jstaffon 0 609 Sep-10-2023, 01:55 PM
Last Post: jstaffon
  extract email addresses from gmail vigneshboolog 0 1,808 Feb-11-2020, 09:23 AM
Last Post: vigneshboolog
  how to upload a file to my gmail driver after login ?? evilcode1 5 4,221 Nov-06-2018, 07:33 AM
Last Post: evilcode1
  An email with inline jpg cannot be read by all email clients fpiraneo 4 4,063 Feb-25-2018, 07:17 PM
Last Post: fpiraneo
  Problem with sending text file as an attachment using this Gmail OAuth script downloaderfan 6 7,037 Feb-07-2018, 09:54 PM
Last Post: downloaderfan
  Email - Send email using Windows Live Mail cyberzen 2 5,979 Apr-13-2017, 03:14 AM
Last Post: cyberzen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020