kootenpv / yagmail

Send email in Python conveniently for gmail using yagmail
MIT License
2.64k stars 263 forks source link

MailServerError #268

Open vianmixtkz opened 11 months ago

vianmixtkz commented 11 months ago

I got the following error:

SMTPSenderRefused (552, b"5.2.3 Your message exceeded Google's message size limits. Please visit\n5.2.3 https://support.google.com/mail/?p=MaxSizeError to view our size\n5.2.3 guidelines. v10-20020a5d678a000000b0032d9f32b96csm1378829wru.62 - gsmtp", 'dummy@gmail.com')

while trying to send an heavy excel file. According to the lin, in those cases, the file should be uploaded to Drive and substituted in the mail by a link to the document in the drive.

Is that something that the library could support ?