0

我必须通过 BLAT 发送邮件。我们正在从 Postie 转向 BLAT。发送邮件拒绝通过批处理文件发送邮件。

我的代码如下

REM ########### Initialize BLAT SMTP Server and User Name #######################
ECHO.
%V_EMAIL_PATH%\blat.exe -install %V_HOST% "mno@xyz.com"
ECHO.

REM ------------------------ Send Email Notifications ---------------
@ECHO ON
set V_EMAIL_ID="abcd@xyz.com"
set V_SUBJ="Test mail to a group"
set V_MSG="Hello|test mail to prevent failure during delivery while sending automated mails|Thanks|mno"


GOTO Sendemail

:Sendemail


%V_EMAIL_PATH%\blat.exe -body %V_MSG% -to "%V_EMAIL_ID%" -from "mno@xyz.com" -subject "Test Mail"

抛出的错误如下

D:\pmserver\pm-work\Utilities\blat.exe -body "Hello test mail to prevent failure during delivery while sending automated mails. Thanks RM Primary" -to "abcd@xyz.com" -from "mno@xyz.com" -subject "Test Mail"
Blat v2.2.2 (build : Feb 26 2004 10:37:13)

Blat 看到并处理了这些选项,被最后一个弄糊涂了……

Hello|test mail to prevent failure during delivery while sending automated mails.|Thanks|mno

不明白的说法:Hello|test mail to prevent failure during delivery while sending automated mails|Thanks|mno

我也尝试使用断线,但即使这样也失败了。

里卡五世

4

1 回答 1

3

尝试这个:

@echo OFF &SETLOCAL
set "V_EMAIL_ID=abcd@xyz.com"
set "V_SUBJ=Test mail to a group"
set "V_MSG=Hello|test mail to prevent failure during delivery while sending automated mails|Thanks|mno"

%V_EMAIL_PATH%\blat -body "%V_MSG%" -to "%V_EMAIL_ID%" -from "mno@xyz.com" -subject "Test Mail"
于 2013-07-16T13:52:59.250 回答