Problem with SENDMAIL /H

May 29, 2008
571
4
Groton, CT
Starting with TCC v11, having two or more extra header specifications (/H) on the SENDMAIL command works incorrectly. The manual specifically allows multiple /H instances on the command.

It acts as if an extra blank line were inserted into the outgoing message after each /H line; the received message has the first extra header specified with /H correctly in the headers, but then each additional extra header specified with /H shows up in the body of the message.

Here's a simple .btm file:

Code:
     sendmail /v ^
     /h"X-Test-Header-1: Test header 1" ^
     /h"X-Test-Header-2: Test header 2" ^
     /h"X-Composed-Date: %_dow, %_day %@left[3,%_monthf] %_year %_time %@if[%_tzo gt 0,-,+]%@right[4,%@strip[":",%@maketime[%_tzo]]]" ^
     %@option[mailaddress] "%@name[%_batchname]: Test extra headers"  "Testing the effect of extra headers."
(I've broken up the command for legibility, but it works the same way if it's all on one physical line.)

This results in the following text being received as the text of the message:
Code:
X-Test-Header-2: Test header 2

X-Composed-Date: Sat, 6 Feb 2010 10:54:40 -0500

Testing the effect of extra headers.
I've verified that it works this way through two different outbound SMTP servers, and retrieved with two different POP clients to eliminate the possibility that the problem is at one of my usual mail server sites.

Also, it makes no difference whether the text of the body or the filename containing the body is specified (with @) .

To work around this problem for now, I've replaced the command SENDMAIL with "C:\...\TCMD10\TCC.EXE /C SENDMAIL" .

This aspect of the SENDMAIL command works correctly in TCC v10.
 

rconn

Administrator
Staff member
May 14, 2008
12,404
152
> Starting with TCC v11, having two or more extra header specifications
> (/H) on the SENDMAIL command works incorrectly. The manual
> specifically allows multiple /H instances on the command.

Nothing changed in SENDMAIL in 11.0. This would have to be a bug in the new
ipworks8.dll; I'll take a look but there may be nothing I can do about it
other than report the problem to the ipworks developers and wait for a fix.
 
May 29, 2008
571
4
Groton, CT
Nothing changed in SENDMAIL in 11.0. This would have to be a bug in the new
ipworks8.dll; I'll take a look but there may be nothing I can do about it
other than report the problem to the ipworks developers and wait for a fix.
Thanks, Rex. For now I have a work-around, and I'll wait patiently for a new version of ipworks.
 
Jun 2, 2008
386
2
Newton, MA
Dave Cantor wrote:

> Thanks, Rex. For now I have a work-around, and I'll wait patiently for a new version of ipworks.
>
Dave, I have been trying to figure out how to use SENDMAIL to create a
multipart message with both plain text and HTML. Have you, by any
chance, worked on that? The problem you discovered with multiple /H
options might be related to the difficulty I encountered.

-- Jay
 
May 29, 2008
571
4
Groton, CT
Dave Cantor wrote:


Dave, I have been trying to figure out how to use SENDMAIL to create a
multipart message with both plain text and HTML. Have you, by any
chance, worked on that? The problem you discovered with multiple /H
options might be related to the difficulty I encountered.

-- Jay
Sorry, Jay, no I haven't looked at that. I'm just attempting to send simple text.
 
Similar threads
Thread starter Title Forum Replies Date
C Sendmail w/GMail - problem Support 6
Dan Glynhampton Fixed v15 sendmail : password encryption problem Support 18
Jay Sage SENDMAIL Problem in TCC12 Support 10
old coot Problem with INS key flag in the debugger status bar Support 3
Dick Johnson Weird Color Problem Support 10
fishman@panix.com Problem with 27.15 Support 2
M Problem with VSDevCmd.bat in VS 16.7.3 Support 0
R Problem with @INT[ value] in V26 Support 9
M Selecting test "off by one" problem in Take command Support 4
Alpengreis UTF-8 problem in TCC related to Python Support 7
K_Meinhard Small problem in german IDE 26 Support 3
B Problem with color in nested shells Support 1
Joe Caverly Problem creating and switching to a DESKTOP Support 9
vefatica Another popup problem Support 10
Alpengreis ffind dialog (/W) problem Support 4
Alpengreis [TCMD v25.00.24] Small space problem with the DE translation in Prefs-GUI Support 1
Alpengreis [TCMD v25.00.24] Problem with copy and paste and the # char via mouse in TCC Support 6
A Problem with functions @int @decimal and identifying Powershell as a shell. Support 12
B IF command problem in tcexit.btm Support 9
fishman@panix.com Problem at Startup of TCC Support 3
P Problem with SFTP copies Support 7
P Problem with FTP copies Support 10
Jay Sage Problem with Context Menu Copy+Paste+Run Key Assignment Support 7
R Problem with %_do_loop in nested do loops Support 2
fishman@panix.com New Problem with later Windows 10 Support 10
Peter Murschall A little problem with LEAVE and COMMENT Support 5
M Handling of %~I problem Support 4
WinLanEm FOR problem Support 18
K Problem With SCRPUT /u Support 3
vefatica What's TCMD's problem with ^e[0m? Support 13
Peter Murschall IDE: RTL with non-English resources-problem is back in Build 28 Support 4
rps Regex problem: \xnn not recognized as a hex character Support 0
rps PRIORITY LOW problem Support 1
old coot Regex problem: \xnn not recognized as a hex character Support 12
vefatica Another problem with build 22. Support 3
Alpengreis [23.x] Download-Problem Support 2
S Problem with " Support 3
C Problem navigating forums Support 11
x13 Problem listing repository files using DIR http(s)://... Support 8
Joe Caverly Problem with TEE in v22 Support 2
Alpengreis Problem with thousands delimiter and colors Support 17
M Take Command 18, migrating to another machine, license problem. Support 1
B TCC 21.01.50 Problem with ALIAS /r and SET /r Support 2
rps How to? @search problem Support 2
WinLanEm @SELECT problem Support 6
T Fixed Problem with use of Batch parameters in the IDE Support 1
Oz Solomon Problem with "list" Support 14
S V21.24 theme problem Support 2
Alpengreis Problem if command prompt is not legacy Support 4
Alpengreis TCMD.INI: The "super hidden" problem ... Support 6

Similar threads