Buddy/Stephen:
Thanks for your attention and thought.
Turns out that the 'ADD_TO_MESSAGE_BODY' and
'LOAD_MESSAGE_BODY_FROM_FILE' parameters cannot be used in the same
sequence.
Build the message body line by line inside; or build entirely outside.
User Guide and Help File are being modified accordingly.
Thanks again
Bruce
------ Original Message ------
Sent: 4/21/2016 4:58:25 AM
Subject: RE: Re[2]: [RBASE-L] - RMailX Message Body Question
From: "Buddy Walker" <[email protected]>
To: [email protected]
Cc:
You could try building the command then use the & like
SET VAR vSYNTAX_Salutation = ('PLUGIN RMail' & .vq +
'vResult|ADD_TO_MESSAGE_BODY Dear ' + .vRecpntFirstNAME + ':' + .vq)
PLUGIN RMail vResult|MESSAGE_TYPE TEXT
PLUGIN RMail .vSYNTAX_SubjectLine
PLUGIN RMail 'vResult|ADD_TO_MESSAGE_BODY '
&vSYNTAX_Salutation
PLUGIN RMail 'vResult|ADD_TO_MESSAGE_BODY '
Buddy
From:[email protected] [mailto:[email protected]] On
Behalf Of Bruce Chitiea
Sent: Wednesday, April 20, 2016 10:18 PM
To:[email protected]
Subject: Re[2]: [RBASE-L] - RMailX Message Body Question
Code Best viewed in Courier New 10pt
RGBXE 10.0.1.20414
RMailX 2016-0104
Buddy: Thank you. I've been puzzling over .vq these days, myself.
Working with the embedded '.vq' variable as proposed:
SET VAR vSYNTAX_Salutation = (.vq + 'vResult|ADD_TO_MESSAGE_BODY Dear
' + .vRecpntFirstNAME + ':' + .vq)
... TRACE displays the result (note the surrounding quotes):
vSYNTAX_Salutation ... 'vResult|ADD_TO_MESSAGE_BODY Dear Bob:'
... while erroring-out:
[ -ERROR- Syntax is incorrect for the command SET (2045) ]
Without the embedded '.vq' variable (per example in the RMailX guide):
SET VAR vSYNTAX_Salutation = ('vResult|ADD_TO_MESSAGE_BODY Dear ' +
.vRecpntFirstNAME + ':')
... TRACE displays:
vSYNTAX_Salutation ... vResult|ADD_TO_MESSAGE_BODY Dear Bob:
... without error, which the Plugin reads, reporting a code of 'OK' to
vResult.
The full block of RMailX Plugin code looks like:
PLUGIN RMail vResult|SHOW LOG
PLUGIN RMail vResult|CLEAR LOG
PLUGIN RMail vResult|CLEAR_ALL
PLUGIN RMail vResult|SHOW PROGRESS
PLUGIN RMail vResult|WAIT 1000
PLUGIN RMail vResult|SHOW LOG
PLUGIN RMail .vSYNTAX_OrgNAME
PLUGIN RMail .vSYNTAX_AccountNAME
PLUGIN RMail .vSYNTAX_Sender
PLUGIN RMail .vSYNTAX_Recipient
PLUGIN RMail vResult|PRIORITY NORMAL
PLUGIN RMail vResult|MESSAGE_TYPE TEXT
PLUGIN RMail .vSYNTAX_SubjectLine
PLUGIN RMail 'vResult|ADD_TO_MESSAGE_BODY '
PLUGIN RMail .vSYNTAX_Salutation
PLUGIN RMail 'vResult|ADD_TO_MESSAGE_BODY '
PLUGIN RMail .vSYNTAX_Invitation
PLUGIN RMail 'vResult|ADD_TO_MESSAGE_BODY '
PLUGIN RMail .vSYNTAX_MessageFile
PLUGIN RMail vResult|SEND
Construction:
SET VAR vSYNTAX_OrgNAME = ('vResult|ORGANIZATION' & .vOrgNAME)
SET VAR vSYNTAX_AccountNAME = ('vResult|ACCOUNT_NAME' & .vAccountNAME)
SET VAR vSenderNAME = '"Bruce Chitiea"'
SET VAR vSenderADDR = '<[email protected]>'
SET VAR vSenderLABL = (.vSenderNAME & .vSenderADDR)
SET VAR vSYNTAX_Sender = ('vResult|SENDER_INFO_TEXT' &
.vSenderLABL)
SET VAR vRecpntNAME = ('"' + .vRecpntNAME + '"')
SET VAR vRecpntADDR = ('<' + .vRecpntADDR + '>')
SET VAR vRecpntLABL = (.vRecpntNAME & .vRecpntADDR)
SET VAR vSYNTAX_Recipient = ('vResult|ADD_RECIPIENT' & .vRecpntLABL)
SET VAR vSYNTAX_SubjectLine = ('vResult|SUBJECT Found those Lakers
Tickets!')
SET VAR vSYNTAX_Salutation = ('vResult|ADD_TO_MESSAGE_BODY Dear ' +
.vRecpntFirstNAME + ':')
SET VAR vSYNTAX_Invitation = ('vResult|ADD_TO_MESSAGE_BODY Hey' &
.vInvitee + '!')
SET VAR vMessageFileNAME =
'F:\ACTIVE\RBASE\DBMS\RCWV\MessageFile.txt'
SET VAR vSYNTAX_MessageFile = ('vResult|LOAD_MESSAGE_BODY_FROM_FILE' &
.vMessageFileNAME)
... all of which produce the intended output, except for the Salutation
and Invitation lines.
Even after removing those two lines, the 'vResult|ADD_TO_MESSAGE_BODY '
lines STILL did not make it into the message.
A mystery.
Bruce
------ Original Message ------
Sent: 4/20/2016 6:11:41 PM
Subject: RE: [RBASE-L] - RMailX Message Body Question
From: "Buddy Walker" <[email protected]>
To: [email protected]
Cc:
Bruce
Since there are spaces in line the line needs to enclosed in quotes
Try
SET VAR vq = (CVAL(‘QUOTES’))
SET VAR vSYNTAX_Salutation = (.vq + 'vResult|ADD_TO_MESSAGE_BODY Dear '
+ .vRecpntFirstNAME + ':' + .vq)
SET VAR vSYNTAX_Invitation = (.vq+'vResult|ADD_TO_MESSAGE_BODY ' +
.vInvitee & 'are darn lucky ...'+.vq)
Buddy
From:[email protected] [mailto:[email protected]] On
Behalf Of Bruce Chitiea
Sent: Wednesday, April 20, 2016 8:43 PM
To:[email protected]
Subject: [RBASE-L] - RMailX Message Body Question
All:
I have the RMailX Plugin working within a loop sending everything
perfectly down through the Subject Line.
In the code below, the SubjectLine and MessageFile work perfectly. The
contents of the block between does not appear in the message: the
contents of the MessageFile appear on the first line.
PLUGIN RMail .vSYNTAX_SubjectLine
PLUGIN RMail 'vResult|ADD_TO_MESSAGE_BODY '
PLUGIN RMail .vSYNTAX_Salutation
PLUGIN RMail 'vResult|ADD_TO_MESSAGE_BODY '
PLUGIN RMail .vSYNTAX_Invitation
PLUGIN RMail 'vResult|ADD_TO_MESSAGE_BODY '
PLUGIN RMail .vSYNTAX_MessageFile
PLUGIN RMail vResult|SEND
Construction:
SET VAR vSYNTAX_Salutation = ('vResult|ADD_TO_MESSAGE_BODY Dear ' +
.vRecpntFirstNAME + ':')
SET VAR vSYNTAX_Invitation = ('vResult|ADD_TO_MESSAGE_BODY ' +
.vInvitee & 'are darn lucky ...')
... which resolve as seen in TRACE:
vSYNTAX_Salutation = vResult|ADD_TO_MESSAGE_BODY Dear Bob:
vSYNTAX_Invitation = vResult|ADD_TO_MESSAGE_BODY You and Tamara are
darn lucky ...
... producing vResult codes of 'OK' when run
The sent-message header source code shows no trace of these lines.
Why would these items not appear?
Thanks very much
Bruce Chitiea
SafeSectors, Inc.
909.238.9012 Mobile
--
You received this message because you are subscribed to the Google
Groups "RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google
Groups "RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google
Groups "RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google
Groups "RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.