RE: Caot send emails with attachments
| Newsgroups | gmane.mail.blat |
|---|---|
| Message-ID | <!&!AAAAAAAAAAAYAAAAAAAAAH3fQh0qW/pHjsDKJ3Hs9vDCgAAAEAAAAMI01gXoRLFAlrBVeclq0t0BAAAAAA==@incodesystems.com> |
Blat may be waiting for the body of the text to be entered from the standard input device.
When you want to use a file as the body of the email:
blat.exe BodyFile.txt {remaining options}
When you want to have no body, just a subject and an attachment:
blat.exe - -body " " {remaining options}
Note there is a single space between the double quotes following body.
Glenn Lawler
www.incodesystems.com
From: [email protected] [mailto:[email protected]]
Sent: Sunday, September 20, 2015 11:16 PM
To: [email protected]
Subject: [blat] Caot send emails with attachments
Blat v3.2.6 (build : Aug 2 2015 23:18:51)
Windows OS: Windows 2003 SP2 ENT x32
I have a script which sends a textfile as the body of the email so I want to change the script to send the textfile as an attachment, but when I try this command, it sits there and looks like it is waiting for some type of input and the only way out is CTRL-C:
C:\Scripts>C:\Scripts\blat326\full\BLAT.exe -to [email protected] -server smtp.myDomain.com -subject "[Source Server: MyServerName| Scheduled Task Name: STN|
BatchFile Name: C:\Scripts\UOMS.bat]" -sig Signature.txt -attacht C:\Scripts\RESULT_STN.TXT -log LOG.TXT -superdebug
Here's what I get when I run it:
C:\Scripts>C:\Scripts\blat326\full\BLAT.exe -to [email protected] -server smtp.myDomain.com -subject "[Source Server: MyServerName| Scheduled Task Name: STN|
BatchFile Name: C:\Scripts\STN.bat]" -sig Signature.txt -attacht C:\Scripts\RESULT_STN.TXT -log LOG.TXT -superdebug
Blat v3.2.6 (build : Aug 2 2015 23:18:51)
32-bit Windows, Full, Unicode
Checking option -to
Checking option -server
Checking option -subject
Checking option -sig
Checking option -attacht
^C
C:\Scripts>
Log file looks like this:
2015.09.21 14:13:03 (Mon)------------Start of Session-----------------
Blat v3.2.6 (build : Aug 2 2015 23:18:51)
32-bit Windows, Full, Unicode
No actual email is sent.