I'm working on a tool and have isolated the problem to specifically the yagmail send function and only when contents are passed. Program runs until the send call. Sending emains with no content is fine, even with attachments.
Built using several configurations of pyinstaller and tested with different py scripts to isolate the issue.
Is this something to do with processing in windows instead of natively python and any suggestions? Maybe I missed something that should be explicitly imported or added to hidden imports.
Sample troubleshooting script (sends the first but crashes before the second):
import sys
import os
user = yagmail.SMTP(user='[email]@gmail.com', password='[password]')
print("user created")
print("sending baseline")
user.send(to='[email]@gmail.com', subject="yagmail base attachment with space", attachments="attachment file.pdf")
print("sending wth contents")
user.send(to='[email]@gmail.com', subject="yagmail attachment", contents=yagmail.raw("test"), attachments="1.pdf")```