VBS script to open New Email from Outlook with UTF-8 in body and subject
$30-250 USD
Suoritettu
Julkaistu yli 8 vuotta sitten
$30-250 USD
Maksettu toimituksen yhteydessä
I have a visual basic script, which is saved to a file script.vbs.
When started, the script calls outlook to open new message dialog, with predefined values for To, Cc, Bcc, Subject, and Body.
I need you to modify this script, because there is a problem. The problem is that if the body or subject of the mail message is written in UTF-8, it is not properly added to the new email. The characters are mangled. I need full UTF-8 support, so I need to be able to write UTF-8 characters to both - the body and the subject.
It is not possible to read the body or subject from external file, everything must be included in the vbs file itself, because the entire VBS file is generated server-side and is sent to the client so he can open a new message in outlook when he clicks the VBS script.
Note: If there is a problem with adding real UTF-8 texts to a VBS script file, I can encode the text using base64, if that is useful for you.
The script is below.
Set objoutlookApp = CreateObject("[login to view URL]")
Set objmessage = [login to view URL](olMailItem)
[login to view URL] = "mail1 @ [login to view URL];mail2 @ [login to view URL]"
[login to view URL] = "cc1 @ [login to view URL];cc2 @ [login to view URL]"
[login to view URL] = "bcc @ [login to view URL]"
[login to view URL] = "E-Mail Subject"
[login to view URL] = "Here comes some text"
[login to view URL]
set objmessage = Nothing
set objoutlookApp = Nothing
[login to view URL]
Dear, we are Team of French + US.
11 years experience on Access/Excel/VBA automations.
I checked your project description, and I confirm I can develop your program.
I will focus on user friendly interface.
As you can see I have very good rate, you can be sure I am serious.
Regards,
Fabrice