norsynthz
norsynthz

Reputation: 35

How do I display emojis when sending an email using Python, mtplib, and Mimetext?

Here is a photo of my current situation:

enter image description here

Of course it seems as though emojis can be sent, though my Norwegian flag does not.

I used the flag unicode from here.

Here's the Python Code

`message = MIMEMultipart()
message['From'] = '[email protected]'
message['To'] = receiver_address
message['Subject'] = '\U0001F1F3\U0001F1F4  Hva skjer i dag?' # Used to represent Norwegian Flag

message.attach(MIMEText(mail_content, 'plain'))`

Any advice would be appreciated! Takk! (thanks) ;🇳🇴

Upvotes: 0

Views: 588

Answers (1)

norsynthz
norsynthz

Reputation: 35

I found the answer for those interested. Microsoft bans the usage of country flags. Works on my linux machine.

Upvotes: 1

Related Questions