I am trying to send mail in a particular time with task scheduler on windows.
The output I have in body is not what I expect and does not give a newline.
Is there any way to control the format of the output?
<%@LANGUAGE="VBSCRIPT" CODEPAGE="CP65001"%>
Const MSG_RECIPIENT_LIST = "foor@bar.com"
Const MSG_SUBJECT = "力"
Const MSG_BODY = "これをやろう" + vbNewLine + "我々は一緒に大きなものを達成する"
Dim olkApp, olkSes, olkMsg
Set olkApp = CreateObject("Outlook.Application")
Set olkSes = olkApp.GetNamespace("MAPI")
olkSes.Logon olkApp.DefaultProfileName
Set olkMsg = olkApp.CreateItem(0)
With olkMsg
.To = MSG_RECIPIENT_LIST
.Subject = MSG_SUBJECT
.HTMLBody = MSG_BODY
.Send
End With
olkSes.Logoff
Set olkMsg = Nothing
Set olkSes = Nothing
Set olkApp = Nothing
")` as @K.Davies had suggested. You should also be using [tag:cdonts] to do this instead of [tag:outlook] which requires that it is installed on the web server. – user692942 Dec 03 '18 at 17:16