Describe the bug
Code using msg['from'], msg['to'] and msg['subject'] generate from: , to: , and subject: headers respectively. Some email clients don't parse properly those headers.
To Reproduce
Email received in software like K-9 Mail or Mailnag don't parse email with initial lowercase headers and show empty values on received email.
It is suggested to use msg['From'], msg['To'] and msg['Subject'] to maximize compatibility.
Describe the bug
Code using
msg['from'],msg['to']andmsg['subject']generatefrom:,to:, andsubject:headers respectively. Some email clients don't parse properly those headers.To Reproduce
Email received in software like K-9 Mail or Mailnag don't parse email with initial lowercase headers and show empty values on received email.
It is suggested to use
msg['From'],msg['To']andmsg['Subject']to maximize compatibility.