Re: Call command line to send email.

"Octavio Chango [email protected] [blat]" <[email protected]> Wed, 6 Mar 2019 22:55:17 -0400
Newsgroups gmane.mail.blat
Message-ID <CAFFpc1q1iSjp3+KvdBC9XcKZd7aawoacLDC0EHP93W8djgECFQ@mail.gmail.com>
--0000000000004f9fa30583783d88
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"

it would be good to see the error in detail

do we know it?

are you using =
the run log? (-debug)

it would also be helpful to see an expanded command =
line (text and hex is
helpful), also the contents of the variables used

wh=
y are you presenting the "$sBlatCommand" statement twice, is there a
reason=
 for it?

did you test the same procedure exactly in w7 ?, same mail server=
 and same
settings and the like ?

I'm not familiar with the "64 bit" versi=
on, did the authors included
security and authentication ?

hoping you get =
your answer and solution, regards

O Chango GMAIL SG9

On Wed, Mar 6, 2019,=
 21:27 [email protected] [blat] <[email protected]
wrote:

>
>
> Dear =
All,
>
> I have a problem about using command running blat.exe, we had prog=
ram
> which is write by AUTOIT and it is work fine in windows 7,  after we
=
> migrate to Windows 10 it is not working and I found that it seem a call o=
ut
> command is not functional, I'm not a programmer so didn't know it is t=
he
> blat.exe problem or is a command script problem when call out blat.exe=
... I'm
> already change to blat.exe 64 bit in system32.
>
> script:
>
> GenE=
mailFile($sTriggerMsg_html, $sGenTimeStamp)
> ;$sBlatCommand =3D EnvGet("SY=
STEMROOT") & "\system32\blat.exe " & @ScriptDir
> & "\log\emailbody.txt" & =
" -html -s " & chr(34) & $strEmailSubject &
> chr(34) & " -to " &$strSMTPSe=
ndTo & " -server " & $strSMTPServerName & "
> -port " & $strSMTPServerPort =
& " -priority " & $strSMTPMailPriority & "
> -log " & chr(34) & @ScriptDir =
& "\log\email.log" & chr(34)
> $sBlatCommand =3D EnvGet("SYSTEMROOT") & "\s=
ystem32\blat.exe " & chr(34) &
> @ScriptDir & "\email\emailbody.txt" & chr(=
34) & " -html -s " & chr(34) &
> $strEmailSubject & chr(34) & " -tf " & chr=
(34) & @ScriptDir &
> "\email\emailSendTo.txt" & chr(34) & " -server " & $s=
trSMTPServerName & "
> -port " & $strSMTPServerPort & " -priority " & $strS=
MTPMailPriority & "
> -log " & chr(34) & @ScriptDir & "\log\email.log" & ch=
r(34)
>
>
>
> hope can fix the problem.
>
> Thanks
>
> Alex
>
> 
>

--0000000000004f9fa30583783d88
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable




<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/htm=
l4/strict.dtd">
<html>
<head>
</head>






=20
<body style=3D"background-color: #fff;">
<span style=3D"display:none">&nbsp;</span>

<!--~-|**|PrettyHtmlStartT|**|-~-->
<div id=3D"ygrp-mlmsg" style=3D"position:relative;">
  <div id=3D"ygrp-msg" style=3D"z-index: 1;">
<!--~-|**|PrettyHtmlEndT|**|-~-->

    <div id=3D"ygrp-text" >
=20=20=20=20=20=20
=20=20=20=20=20=20
      <p><div dir=3D"auto"><div>it would be good to see the error in detail=
</div><div dir=3D"auto"><br></div><div dir=3D"auto">do we know it?</div><di=
v dir=3D"auto"><br></div><div dir=3D"auto">are you using the run log? (-deb=
ug)</div><div dir=3D"auto"><br></div><div dir=3D"auto">it would also be hel=
pful to see an expanded command line (text and hex is helpful), also the co=
ntents of the variables used</div><div dir=3D"auto"><br></div><div dir=3D"a=
uto">why are you presenting the &quot;<span style=3D"background-color:rgb(2=
55,255,255);color:rgb(32,33,36);font-family:roboto,arial,sans-serif;font-si=
ze:16px;letter-spacing:0.1px;white-space:pre-wrap;">$sBlatCommand&quot; sta=
tement twice, is there a reason for it?</span></div><div dir=3D"auto"><span=
 style=3D"background-color:rgb(255,255,255);color:rgb(32,33,36);font-family=
:roboto,arial,sans-serif;font-size:16px;letter-spacing:0.1px;white-space:pr=
e-wrap;"><br></span></div><div dir=3D"auto"><span style=3D"background-color=
:rgb(255,255,255);color:rgb(32,33,36);font-family:roboto,arial,sans-serif;f=
ont-size:16px;letter-spacing:0.1px;white-space:pre-wrap;">did you test the =
same procedure exactly in w7 ?, same mail server and same settings and the =
like ?</span></div><div dir=3D"auto"><span style=3D"background-color:rgb(25=
5,255,255);color:rgb(32,33,36);font-family:roboto,arial,sans-serif;font-siz=
e:16px;letter-spacing:0.1px;white-space:pre-wrap;"><br></span></div><div di=
r=3D"auto"><span style=3D"background-color:rgb(255,255,255);color:rgb(32,33=
,36);font-family:roboto,arial,sans-serif;font-size:16px;letter-spacing:0.1p=
x;white-space:pre-wrap;">I&#39;m not familiar with the &quot;64 bit&quot; v=
ersion, did the authors included security and authentication ?</span></div>=
<div dir=3D"auto"><span style=3D"background-color:rgb(255,255,255);color:rg=
b(32,33,36);font-family:roboto,arial,sans-serif;font-size:16px;letter-spaci=
ng:0.1px;white-space:pre-wrap;"><br></span></div><div dir=3D"auto"><span st=
yle=3D"background-color:rgb(255,255,255);color:rgb(32,33,36);font-family:ro=
boto,arial,sans-serif;font-size:16px;letter-spacing:0.1px;white-space:pre-w=
rap;">hoping you get your answer and solution, regards</span></div><div dir=
=3D"auto"><br></div><div dir=3D"auto"><div data=3D"gmail_signature" dir=3D"=
auto">O Chango GMAIL SG9</div><br><div class=3D"gmail_quote" dir=3D"auto"><=
div dir=3D"ltr">On Wed, Mar 6, 2019, 21:27 <a href=3D"mailto:bear410hk@gmai=
l.com" target=3D"_blank" rel=3D"noreferrer">[email protected]</a> [blat] =
&lt;<a href=3D"mailto:[email protected]" target=3D"_blank" rel=3D"norefe=
rrer">[email protected]</a> wrote:<br></div><blockquote class=3D"gmail_q=
uote" style=3D"border-left:1px #ccc solid;">


<u></u>









=20
<div style=3D"background-color:#fff;">
<span>=C2=A0</span>


<div id=3D"m_-3203517998716503775m_-4700987900528332647ygrp-mlmsg">
  <div id=3D"m_-3203517998716503775m_-4700987900528332647ygrp-msg">


    <div id=3D"m_-3203517998716503775m_-4700987900528332647ygrp-text">
=20=20=20=20=20=20
=20=20=20=20=20=20
      <p></p><div>Dear All,</div><div><br></div>I have a problem about usin=
g command running blat.exe, we had program which is write by AUTOIT and it =
is work fine in windows 7,=C2=A0 after we migrate to Windows 10 it is not w=
orking and I found that it seem a call out command is not functional, I&#39=
;m not a programmer so didn&#39;t know it is the blat.exe problem or is a c=
ommand script problem when call out blat.exe. I&#39;m already change to bla=
t.exe 64 bit in system32.<br><div><br></div><div>script:</div><div><br></di=
v><div><span style=3D"color:rgb(32,33,36);font-family:Roboto,Arial,sans-ser=
if;font-size:16px;letter-spacing:0.1px;white-space:pre-wrap;">GenEmailFile(=
$sTriggerMsg_html, $sGenTimeStamp)</span><br style=3D"color:rgb(32,33,36);f=
ont-family:Roboto,Arial,sans-serif;font-size:16px;letter-spacing:0.1px;whit=
e-space:pre-wrap;"><span style=3D"color:rgb(32,33,36);font-family:Roboto,Ar=
ial,sans-serif;font-size:16px;letter-spacing:0.1px;white-space:pre-wrap;">	=
	;$sBlatCommand =3D EnvGet(&quot;SYSTEMROOT&quot;) &amp; &quot;\system32\bl=
at.exe &quot; &amp; @ScriptDir &amp; &quot;\log\emailbody.txt&quot; &amp; &=
quot; -html -s &quot; &amp; chr(34) &amp; $strEmailSubject &amp; chr(34) &a=
mp; &quot; -to &quot; &amp;$strSMTPSendTo &amp; &quot; -server &quot; &amp;=
 $strSMTPServerName &amp; &quot; -port &quot; &amp; $strSMTPServerPort &amp=
; &quot; -priority &quot; &amp; $strSMTPMailPriority &amp; &quot; -log &quo=
t; &amp; chr(34) &amp; @ScriptDir &amp; &quot;\log\email.log&quot; &amp; ch=
r(34)</span><br style=3D"color:rgb(32,33,36);font-family:Roboto,Arial,sans-=
serif;font-size:16px;letter-spacing:0.1px;white-space:pre-wrap;"><span styl=
e=3D"color:rgb(32,33,36);font-family:Roboto,Arial,sans-serif;font-size:16px=
;letter-spacing:0.1px;white-space:pre-wrap;">		$sBlatCommand =3D EnvGet(&qu=
ot;SYSTEMROOT&quot;) &amp; &quot;\system32\blat.exe &quot; &amp; chr(34) &a=
mp; @ScriptDir &amp; &quot;\email\emailbody.txt&quot; &amp; chr(34) &amp; &=
quot; -html -s &quot; &amp; chr(34) &amp; $strEmailSubject &amp; chr(34) &a=
mp; &quot; -tf &quot; &amp; chr(34)  &amp; @ScriptDir &amp; &quot;\email\em=
ailSendTo.txt&quot; &amp; chr(34) &amp; &quot; -server &quot; &amp; $strSMT=
PServerName &amp; &quot; -port &quot; &amp; $strSMTPServerPort &amp; &quot;=
 -priority &quot; &amp; $strSMTPMailPriority &amp; &quot; -log &quot; &amp;=
 chr(34) &amp; @ScriptDir &amp; &quot;\log\email.log&quot; &amp; chr(34)</s=
pan><br></div><div><br></div><div><br></div><div><br></div><div>hope can fi=
x the problem.</div><div><br></div><div>Thanks</div><div><br></div><div>Ale=
x</div><p></p>

    </div>
=20=20=20=20=20

=20=20=20=20
    <div style=3D"color:#fff;height:0;"></div>


</div>



=20=20






</div></div></blockquote></div></div></div>
</p>

    </div>
=20=20=20=20=20

    <!--~-|**|PrettyHtmlStart|**|-~-->
    <div style=3D"color: #fff; height: 0;">__._,_.___</div>

=20=20=20=20=20=20=20=20=20=20
=20=20
=20

=20=20=20=20
    <div style=3D"clear:both"> </div>

    <div id=3D"fromDMARC" style=3D"margin-top: 10px;">
        <hr style=3D"height:2px ; border-width:0; color:#E3E3E3; background=
-color:#E3E3E3;">
        Posted by: Octavio Chango &lt;[email protected]&gt;        <hr styl=
e=3D"height:2px ; border-width:0; color:#E3E3E3; background-color:#E3E3E3;"=
>
     </div>
    <div style=3D"clear:both"> </div>

    <table cellspacing=3D4px style=3D"margin-top: 10px; margin-bottom: 10px=
; color: #2D50FD;">
      <tbody>
        <tr>
          <td style=3D"font-size: 12px; font-family: arial; font-weight: bo=
ld; padding: 7px 5px 5px;"  >
                          <a style=3D"text-decoration: none; color: #2D50FD=
" href=3D"https://groups.yahoo.com/neo/groups/blat/conversations/messages/1=
4072;_ylc=3DX3oDMTJwN3UxNTA3BF9TAzk3MzU5NzE0BGdycElkAzMxMTEzNwRncnBzcElkAzE=
3MDUwMDczODkEbXNnSWQDMTQwNzIEc2VjA2Z0cgRzbGsDcnBseQRzdGltZQMxNTUxOTY4NjIx?a=
ct=3Dreply&messageNum=3D14072">Reply via web post</a>
                      </td>
          <td>&bull;</td>
          <td style=3D"font-size: 12px; font-family: arial; padding: 7px 5p=
x 5px;" >
            <a href=3D"mailto:[email protected]?subject=3DRe%3A%20%5Bblat%5=
D%20Call%20command%20line%20to%20send%20email%2E" style=3D"text-decoration:=
 none; color: #2D50FD;">
               Reply to sender            </a>
          </td>
          <td>&bull;</td>
          <td style=3D"font-size: 12px; font-family: arial; padding: 7px 5p=
x 5px;">
            <a href=3D"mailto:[email protected]?subject=3DRe%3A%20%5Bbla=
t%5D%20Call%20command%20line%20to%20send%20email%2E" style=3D"text-decorati=
on: none; color: #2D50FD">
              Reply to group            </a>
          </td>
          <td>&bull;</td>
          <td style=3D"font-size: 12px; font-family: arial; padding: 7px 5p=
x 5px;" >
            <a href=3D"https://groups.yahoo.com/neo/groups/blat/conversatio=
ns/newtopic;_ylc=3DX3oDMTJkNmxmMWRiBF9TAzk3MzU5NzE0BGdycElkAzMxMTEzNwRncnBz=
cElkAzE3MDUwMDczODkEc2VjA2Z0cgRzbGsDbnRwYwRzdGltZQMxNTUxOTY4NjIx" style=3D"=
text-decoration: none; color: #2D50FD">Start a New Topic</a>
          </td>
          <td>&bull;</td>
          <td style=3D"font-size: 12px; font-family: arial; padding: 7px 5p=
x 5px;color: #2D50FD;" >
                            <a href=3D"https://groups.yahoo.com/neo/groups/=
blat/conversations/topics/14068;_ylc=3DX3oDMTM1NjZydDJrBF9TAzk3MzU5NzE0BGdy=
cElkAzMxMTEzNwRncnBzcElkAzE3MDUwMDczODkEbXNnSWQDMTQwNzIEc2VjA2Z0cgRzbGsDdnR=
wYwRzdGltZQMxNTUxOTY4NjIxBHRwY0lkAzE0MDY4" style=3D"text-decoration: none; =
color: #2D50FD;">Messages in this topic</a>
                (4)
                      </td>
        </tr>
      </tbody>
    </table>

=20=20=20=20=20=20=20=20
<div id=3D"megaphoneModule">
            <hr style=3D"height:2px ; border-width:0; color:#E3E3E3; backgr=
ound-color:#E3E3E3;">
        <div>
	     <div class=3D"stream" style=3D"margin-bottom:10px;">
        <div style=3D"background-color:white;">
            <div class=3D"sn-img" style=3D"display:inline;"><img name=3D"tn=
_file" style=3D"padding:0px 10px;vertical-align:top;margin-top:5px;" src=3D=
"https://s.yimg.com/ru/static/images/yg/img/megaphone/1464031581_phpFA8bON"=
 height=3D"82" width=3D"82"></div>
            <div class=3D"mod-txt" style=3D"display:inline-block;">
                <a rel=3D"nofollow" name=3D"sub_url" target=3D"_blank" href=
=3D"https://yho.com/1wwmgg" style=3D"color:#0000FF;display:block;margin-lef=
t:5px;text-decoration:none;"><span style=3D"font-size:15px;">Have you tried=
 the highest rated email app?</span></a>
                <div style=3D"max-width:530px;padding:2px 5px;">With 4.5 st=
ars in iTunes, the Yahoo Mail app is the highest rated email app on the mar=
ket. What are you waiting for? Now you can access all your inboxes (Gmail, =
Outlook, AOL and more) in one place. Never delete an email again with 1000G=
B of free cloud storage.</div>
            </div>
        </div>
    </div>        </div>=20=20
=20=20=20=20=20
    <hr style=3D"height:2px ; border-width:0; color:#E3E3E3; background-col=
or:#E3E3E3;">
</div>

<!------- Start Nav Bar ------>


    <div id=3D"ygrp-grfd" style=3D"font-family: Verdana; font-size: 12px; p=
adding: 15px 0;">
=20=20=20=20=20=20
<!-- |**|begin egp html banner|**| -->

      -- <BR>
Homepage:<BR>
&nbsp; <a href=3D"http://www.blat.net">http://www.blat.net</a><BR>
<BR>
</body>

<!--~-|**|PrettyHtmlStart|**|-~-->
<head>
  <style type=3D"text/css">
  <!--
  #ygrp-mkp {
  border: 1px solid #d8d8d8;
  font-family: Arial;
  margin: 10px 0;
  padding: 0 10px;
}

#ygrp-mkp hr {
  border: 1px solid #d8d8d8;
}

#ygrp-mkp #hd {
  color: #628c2a;
  font-size: 85%;
  font-weight: 700;
  line-height: 122%;
  margin: 10px 0;
}

#ygrp-mkp #ads {
  margin-bottom: 10px;
}

#ygrp-mkp .ad {
  padding: 0 0;
}

#ygrp-mkp .ad p {
  margin: 0;
}

#ygrp-mkp .ad a {
  color: #0000ff;
  text-decoration: none;
}
  #ygrp-sponsor #ygrp-lc {
  font-family: Arial;
}

#ygrp-sponsor #ygrp-lc #hd {
  margin: 10px 0px;
  font-weight: 700;
  font-size: 78%;
  line-height: 122%;
}

#ygrp-sponsor #ygrp-lc .ad {
  margin-bottom: 10px;
  padding: 0 0;
}

  #actions {
    font-family: Verdana;
    font-size: 11px;
    padding: 10px 0;
  }

  #activity {
    background-color: #e0ecee;
    float: left;
    font-family: Verdana;
    font-size: 10px;
    padding: 10px;
  }

  #activity span {
    font-weight: 700;
  }

  #activity span:first-child {
    text-transform: uppercase;
  }

  #activity span a {
    color: #5085b6;
    text-decoration: none;
  }

  #activity span span {
    color: #ff7900;
  }

  #activity span .underline {
    text-decoration: underline;
  }

  .attach {
    clear: both;
    display: table;
    font-family: Arial;
    font-size: 12px;
    padding: 10px 0;
    width: 400px;
  }

  .attach div a {
    text-decoration: none;
  }

  .attach img {
    border: none;
    padding-right: 5px;
  }

  .attach label {
    display: block;
    margin-bottom: 5px;
  }

  .attach label a {
    text-decoration: none;
  }
=20=20
  blockquote {
    margin: 0 0 0 4px;
  }

  .bold {
    font-family: Arial;
    font-size: 13px;
    font-weight: 700;
  }

  .bold a {
    text-decoration: none;
  }

  dd.last p a {
    font-family: Verdana;
    font-weight: 700;
  }

  dd.last p span {
    margin-right: 10px;
    font-family: Verdana;
    font-weight: 700;
  }

  dd.last p span.yshortcuts {
    margin-right: 0;
  }

  div.attach-table div div a {
    text-decoration: none;
  }

  div.attach-table {
    width: 400px;
  }

  div.file-title a, div.file-title a:active, div.file-title a:hover, div.fi=
le-title a:visited {
    text-decoration: none;
  }

  div.photo-title a, div.photo-title a:active, div.photo-title a:hover, div=
..photo-title a:visited {
    text-decoration: none;
  }

  div#ygrp-mlmsg #ygrp-msg p a span.yshortcuts {
    font-family: Verdana;
    font-size: 10px;
    font-weight: normal;
  }

  .green {
    color: #628c2a;
  }

  .MsoNormal {
    margin: 0 0 0 0;
  }

  o {
    font-size: 0;
  }

  #photos div {
    float: left;
    width: 72px;
  }

  #photos div div {
    border: 1px solid #666666;
    height: 62px;
    overflow: hidden;
    width: 62px;
  }

  #photos div label {
    color: #666666;
    font-size: 10px;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
    width: 64px;
  }

  #reco-category {
    font-size: 77%;
  }

  #reco-desc {
    font-size: 77%;
  }

  .replbq {
    margin: 4px;
  }

  #ygrp-actbar div a:first-child {
   /* border-right: 0px solid #000;*/
    margin-right: 2px;
    padding-right: 5px;
  }

  #ygrp-mlmsg {
    font-size: 13px;
    font-family: Arial, helvetica,clean, sans-serif;
    *font-size: small;
    *font: x-small;
  }

  #ygrp-mlmsg table {
    font-size: inherit;
    font: 100%;
  }

  #ygrp-mlmsg select, input, textarea {
    font: 99% Arial, Helvetica, clean, sans-serif;
  }

  #ygrp-mlmsg pre, code {
    font:115% monospace;
    *font-size:100%;
  }

  #ygrp-mlmsg * {
    line-height: 1.22em;
  }

  #ygrp-mlmsg #logo {
    padding-bottom: 10px;
  }


  #ygrp-msg p a {
    font-family: Verdana;
  }

  #ygrp-msg p#attach-count span {
    color: #1E66AE;
    font-weight: 700;
  }

  #ygrp-reco #reco-head {
    color: #ff7900;
    font-weight: 700;
  }

  #ygrp-reco {
    margin-bottom: 20px;
    padding: 0px;
  }

  #ygrp-sponsor #ov li a {
    font-size: 130%;
    text-decoration: none;
  }

  #ygrp-sponsor #ov li {
    font-size: 77%;
    list-style-type: square;
    padding: 6px 0;
  }=20

  #ygrp-sponsor #ov ul {
    margin: 0;
    padding: 0 0 0 8px;
  }

  #ygrp-text {
    font-family: Georgia;
  }

  #ygrp-text p {
    margin: 0 0 1em 0;
  }

  #ygrp-text tt {
    font-size: 120%;
  }

  #ygrp-vital ul li:last-child {
    border-right: none !important;=20
  }=20
  -->
  </style>
</head>

<!--~-|**|PrettyHtmlEnd|**|-~-->
</html>
<!-- end group email -->


--0000000000004f9fa30583783d88--