#๐Ÿ”’ help with email sending

6 messages ยท Page 1 of 1 (latest)

balmy hazel
#

im using flask and smtplib to send emails and am at the point where i can send emails that are just text but i would like to have the emails look more professional and want to be able to put html files into the email for there to be a page they can look at and click on to be redirected to my website, i used this tutorial (https://youtu.be/dam0GPOAvVI?si=v2HbWNT7NvkTc8wI) from Tech With Tim as well as this tutorial (https://www.youtube.com/watch?v=ueqZ7RL8zxM&t=207s) from Just Another Coder to get to the point where i am now, but im not sure how to add an html file into my email, i already have an html file set up and i just need to figure out how to attach that to the body of my email, as well as figure out how to use the button in the email to redirect to a specific url, i understand this might be a bit niche but if anybody could help push me in the right direction i would be eternally grateful

In this video, I'm going to be showing you how to make a website with Python, covering Flask, authentication, databases, and more. The goal of this video is to give you what you need to make a finished product that you can tweak, and turn into anything you like. We're going to also go over how you create a new user's account, how you store those...

โ–ถ Play video

Python tutorial on how to send automated emails using the smtplib module.
Don't forget to like and subscribe!
#python #tutorial #programming #coding #automation #ai

โ–ถ Play video
rapid flowerBOT
#

@balmy hazel

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

balmy hazel
#

help with email sending (PLEASE)

vernal peak
#

You need to make a mutlipart/alternative MIME section for the message body, containing a plain text and an HTML version of the message. See the EmailMessage class in the email package: https://docs.python.org/3/library/email.message.html

rapid flowerBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.