Duplicated from Redmind/NewageNXTGPT
261 unmodified lines262263264265265266267268261 unmodified lines # Open the file to be sent attachment = open(attachment_path, "rb") print("Attached the image") # Instance of MIMEBase and named as p part = MIMEBase('application', 'octet-stream')