VBS script to open New Email from Outlook with UTF-8 in body and subject

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("[url removed, login to view]")

Set objmessage = [url removed, login to view](olMailItem)

[url removed, login to view] = "mail1 @ [url removed, login to view];mail2 @ [url removed, login to view]"

[url removed, login to view] = "cc1 @ [url removed, login to view];cc2 @ [url removed, login to view]"

[url removed, login to view] = "bcc @ [url removed, login to view]"

[url removed, login to view] = "E-Mail Subject"

[url removed, login to view] = "Here comes some text"

[url removed, login to view]

set objmessage = Nothing

set objoutlookApp = Nothing

[url removed, login to view]

Taidot: Visual Basic, Windows Desktop

Näytä lisää: php disposable email script open source, forward outlook email subject script, change subject forward email script, outlook email script forward forwarding, disposable email script open source, script forward outlook email change subject line, script forward email body txt outlook, url outlook email script, outlook forward email script, outlook automated email script

Tietoa työnantajasta:
( 67 arvostelua ) Sumperk, Czech Republic

Projektin tunnus: #8588177

Myönnetty käyttäjälle:


Hello. This is my bid again. I'm writing a utf-8 Funtion right now. Go to check it....................... Regards

$88 USD 1 päivässä
(0 Arvostelua)

5 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


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 c Lisää

$126 USD 3 päivässä
(9 arvostelua)

A proposal has not yet been provided

$100 USD 0 päivässä
(1 arvostelu)

Aucune proposition n'a encore été fournie.

$77 USD 3 päivässä
(3 arvostelua)

Hi there, I am an expert in UTF-8 and VB Script I can add UTF-8 text to subject and body from vba script itself My reviews [login to view URL]~01324463202da70cb6 [login to view URL]

$155 USD 3 päivässä
(0 arvostelua)