Hi,
why is Thunderbird not including the attachment? Gmail and K9-Mail are working fine.
Please fix.
Budget only 8€.
Thanks a lot.
[login to view URL]
def send_error_email(err_subject, err_message, err_email, files=[], err_sender=error_sender):
[login to view URL](f'Sending error email to: {err_email}')
context = ssl.create_default_context()
with smtplib.SMTP_SSL(host, port, context=context) as server:
[login to view URL](username, password)
message = MIMEMultipart("alternative")
message["Subject"] = err_subject
message["From"] = err_sender
message["To"] = err_email
text = err_message
html = f"""\
<html>
<body>
{err_message}
</body>
</html>
"""
part1 = MIMEText(text, "plain")
part2 = MIMEText(html, "html")
[login to view URL](part1)
[login to view URL](part2)
if files:
for file in files:
filepath = [login to view URL]([login to view URL](download_folder, file))
with open(filepath, 'rb') as attachment:
part = MIMEBase('application','pdf')
part.set_payload([login to view URL]())
encoders.encode_base64(part)
part.add_header(
"Content-Disposition",
f'attachment; filename="{file}"',
)
[login to view URL](part)
[login to view URL](err_sender, err_email, message.as_string())
Hi!
I am a Python expert with years of experience.
I am well acquainted with the email services in Python and I have done these sort of things in the past.
I can handle this project immidietly.
Let me know if you are interested.
€10 EUR 1 gün içinde
0,0 (0 değerlendirme)
0,0
0,0
6 freelancers are bidding on average €24 EUR for this job
Hello, a pleasure to greet you, my name is Alex, I would be interested in working on your project, I have immediate availability
I remain attentive to your comments
Greetings
Hi There,
I am really interested in this project.
I have experience on developing like this.
And I have rich experience on Python
I have all the skills you are looking for.
Please send me message so that we could discuss it further.
Thank you & Regards.