The only change you need to make to send HTML formatted emails is changing:
Code: Select all
pmsg.TextBody
Code: Select all
pmsg.HtmlBody
Code: Select all
MailSubject = ✌️ Welcome to Vinewood Studios!
FileRead, MailBody, J:\ONLINE_STORAGE\GOOGLE_DRIVE\Gmail Templates\VSA\VSA-PRE-ORDER\✌️ Welcome to Vinewood Studios!.html
I tried using the Unicode of the emoji, like this (without the colon):
Code: Select all
MailSubject = {U+1F601} "Welcome to Vinewood Studios!"
All of these ways won't even send, I get an error about "Missing "key" in object literal.:
(I understand WHY I get an error, because {U+1F601} is not being seen as a "value" but rather a string. However, this is how it's used when you want to replace text with an emoji so I don't know why it would be different in this case)
Code: Select all
MailSubject := {U+1F601} "Welcome to Vinewood Studios!"
Code: Select all
MailSubject := {U+1F601} . "Welcome to Vinewood Studios!"
Code: Select all
emoji := {U+1F601}️
MailSubject := emoji . "Welcome to Vinewood Studios!"
Code: Select all
MailSubject := ✌️ Welcome to Vinewood Studios!
Any ideas on how to send an email with emojis and special characters?