Home > other >  MSG is an instance of the class, followed by a [' From '] what is the meaning of this?
MSG is an instance of the class, followed by a [' From '] what is the meaning of this?

Time:10-12

MSG=MIMEText (' Python mailing test... ', 'plain', 'utf-8')

MSG=[' From '] Header (" novice tutorial ", "utf-8") # corresponding to the sender email address nickname in brackets (literally), the sender email accounts

MSG=[' To '] Header (" test ", "utf-8") # corresponds To the recipient mailbox nickname in brackets, the recipient email accounts

Subject='Python SMTP mail test'

MSG=[' Subject '] Header (Subject, 'utf-8)


Behind the most basic, why can have brackets, with MSG., To not,,,,,

CodePudding user response:

怎么破

CodePudding user response:

MIMEText usage is so so,

As you open the door, if, with the key is inserted into the keyhole and can twist,
Can't like IC card door, touch switch, can you ask for the keys to touch the lock is open the door,
  • Related