Issue with sending emails using python

Ever since I watched he tutorial, I’ve been trying to send emails using python from my computer but I keep getting either an SMTPSenderRefused error or an SMTPAuthenticationError. Can anyone help me with a solution to this?