I have a very simple piece of code (just for testing):
import smtplib
import time
server = \'smtp.myprovider.com\'
recipients = [\'johndoe@somedomain.com\']
I think you are trying to show some specific name instead of your emailID. You need to change only msg['From'] part in this code
fromName = "Name Which you want to show in reciever Inbox"
fromEmail = "abc@xyz.com" # Sender's email Id
message['From'] = "{} <{}>".format(fromName,fromEmail)
After this usual in above described link.