Re: Subject not working

"'Chip' [email protected] [blat]" <[email protected]> Thu, 16 Aug 2018 08:53:47 -0600
Newsgroups gmane.mail.blat
Message-ID <A3F1D84DF2E547AC9D3E294F649D6CE1@chip>
--7SVLLkKe8ssAjO2ZkWsva7MTrS5ldtvlJQ5d9OH
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

> Thanks for responding Chip. Here is the info.=20
>
> xcopy d:backup.zip e: /Y=20=20
> if %ERRORLEVEL% GEQ 1 goto Error
> c:\windows\system32\blat c:\backup_zip.txt -to [email protected] -server smtp.x=
xx.com -u [email protected] -pw xxxxxxxx
> timeout 1000 -sf c:\backup_zip.txt
> exit
> :Error=20
> c:\windows\system32\Blat c:\backup2_zip.txt -to [email protected] -server smtp.=
xxx.com -u [email protected] -pw xxxxxx -sf c:\backup2_zip.txt
>
> backup.zip.txt contains:
>
> Weekly backup copy successful. Please change USB stick in drive F:
>
> Resulting email:
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]]=20
> Sent: 12 August 2018 17:36
> To: [email protected]
> Subject: Contents of file: backup_zip.txt
>
> Weekly backup copy successful. Please change USB stick in drive E:
>
>
> Same thing with -subject "Weekly backup copy successful. Please change US=
B stick in drive F:"
>
> Thanks
> Chris


The first line after checking ERRORLEVEL does not use the -sf or -subject o=
ption, which is why your outgoing emails say "Subject: Contents of file: ba=
ckup_zip.txt".  It appears to me that you intend to use -timeout option wit=
h Blat, but there are two problems with this:=20=20
1) it should be -ti, not -timeout,
2) it is not on the same line as your other blat options.

If you change the first Blat line to the following, I believe it will do wh=
at you want:

c:\windows\system32\blat c:\backup_zip.txt -to [email protected] -server smtp.xxx=
..com -u [email protected] -pw xxxxxxxx -ti 1000 -sf c:\backup_zip.txt

Of course, you need to change the X=E2=80=99s above to be correct values fo=
r your server.=20

--=20
Chip

[Non-text portions of this message have been removed]


--7SVLLkKe8ssAjO2ZkWsva7MTrS5ldtvlJQ5d9OH
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>&gt; Thanks for responding Chip. Here is the info. <br>
&gt;<br>
&gt; xcopy d:backup.zip e: /Y  <br>
&gt; if %ERRORLEVEL% GEQ 1 goto Error<br>
&gt; c:&#92;windows&#92;system32&#92;blat c:&#92;backup_zip.txt -to xxx@xxx=
..com -server smtp.xxx.com -u [email protected] -pw xxxxxxxx<br>
&gt; timeout 1000 -sf c:&#92;backup_zip.txt<br>
&gt; exit<br>
&gt; :Error <br>
&gt; c:&#92;windows&#92;system32&#92;Blat c:&#92;backup2_zip.txt -to xxx@xx=
x.com -server smtp.xxx.com -u [email protected] -pw xxxxxx -sf c:&#92;backup2_zip.t=
xt<br>
&gt;<br>
&gt; backup.zip.txt contains:<br>
&gt;<br>
&gt; Weekly backup copy successful. Please change USB stick in drive F:<br>
&gt;<br>
&gt; Resulting email:<br>
&gt;<br>
&gt; -----Original Message-----<br>
&gt; From: [email protected] [mailto:[email protected]] <br>
&gt; Sent: 12 August 2018 17:36<br>
&gt; To: [email protected]<br>
&gt; Subject: Contents of file: backup_zip.txt<br>
&gt;<br>
&gt; Weekly backup copy successful. Please change USB stick in drive E:<br>
&gt;<br>
&gt;<br>
&gt; Same thing with -subject &quot;Weekly backup copy successful. Please c=
hange USB stick in drive F:&quot;<br>
&gt;<br>
&gt; Thanks<br>
&gt; Chris<br>
<br>
The first line after checking ERRORLEVEL does not use the -sf or -subject o=
ption, which is why your outgoing emails say &quot;Subject: Contents of fil=
e: backup_zip.txt&quot;.  It appears to me that you intend to use -timeout =
option with Blat, but there are two problems with this:  <br>
1) it should be -ti, not -timeout,<br>
2) it is not on the same line as your other blat options.<br>
<br>
If you change the first Blat line to the following, I believe it will do wh=
at you want:<br>
<br>
c:&#92;windows&#92;system32&#92;blat c:&#92;backup_zip.txt -to [email protected] =
-server smtp.xxx.com -u [email protected] -pw xxxxxxxx -ti 1000 -sf c:&#92;backup_z=
ip.txt<br>
<br>
Of course, you need to change the X=E2=80=99s above to be correct values fo=
r your server. <br>
<br>
-- <br>
Chip<br>
<br>
[Non-text portions of this message have been removed]<br>
<br>
</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: &quot;Chip&quot; &lt;[email protected]&gt;        =
<hr style=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=
4024;_ylc=3DX3oDMTJwNWUwMGtzBF9TAzk3MzU5NzE0BGdycElkAzMxMTEzNwRncnBzcElkAzE=
3MDUwMDczODkEbXNnSWQDMTQwMjQEc2VjA2Z0cgRzbGsDcnBseQRzdGltZQMxNTM0NDMxNDc5?a=
ct=3Dreply&messageNum=3D14024">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%5B=
blat%5D%20Subject%20not%20working" 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%20Subject%20not%20working" style=3D"text-decoration: none; color: #2D5=
0FD">
              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=3DX3oDMTJkcm5ycnQ3BF9TAzk3MzU5NzE0BGdycElkAzMxMTEzNwRncnBz=
cElkAzE3MDUwMDczODkEc2VjA2Z0cgRzbGsDbnRwYwRzdGltZQMxNTM0NDMxNDc5" 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/14021;_ylc=3DX3oDMTM1dDRiZjE0BF9TAzk3MzU5NzE0BGdy=
cElkAzMxMTEzNwRncnBzcElkAzE3MDUwMDczODkEbXNnSWQDMTQwMjQEc2VjA2Z0cgRzbGsDdnR=
wYwRzdGltZQMxNTM0NDMxNDc5BHRwY0lkAzE0MDIx" 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 -->


--7SVLLkKe8ssAjO2ZkWsva7MTrS5ldtvlJQ5d9OH--