Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gmail Sent email LIMIT
#1
Hello,

I created a program, it sends email fine.
However there is a limit (100) in the number of emails it can send before it crashed and gives
an error.

Does someone know what is going on ?
Thanks !

server = smtplib.SMTP('smtp.gmail.com', 587)
    server.ehlo()
    server.starttls()
    server.login(gmail_sender, gmail_passwd)
    BODY = '\r\n'.join(['To: %s' % TO, 'From: %s' % gmail_sender, 'Subject: %s' % SUBJECT, '', TEXT])
    server.sendmail(gmail_sender, [TO], BODY)
the error message is.
Error:
File "C:\ProgramData\Anaconda3\lib\smtplib.py", line 398, in getreply raise SMTPServerDisconnected("Connection unexpectedly closed") SMTPServerDisconnected: Connection unexpectedly closed
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,807 Feb-11-2020, 09:23 AM
Last Post: vigneshboolog
  how to upload a file to my gmail driver after login ?? evilcode1 5 4,219 Nov-06-2018, 07:33 AM
Last Post: evilcode1
  An email with inline jpg cannot be read by all email clients fpiraneo 4 4,055 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,976 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