At 02:56 PM 6/13/2014, Doug Hamilton wrote:

Hi All - I'm trying to get a newsletter emailed using 9.5-32
(30522) and RMail95 and have a few questions.

The message type is text:  PLUGINS RMail v1|MESSAGE_TYPE text

1) Is it possible to have both |ADD_TO_MESSAGE_BODY and
|LOAD_MESSAGE_BODY_FROM_FILE in the same email?
The message is custom text per recipient and the file is a
text version of a newsletter.

For simple testing, SET VAR vBody TEXT = 'v1|ADD_TO_MESSAGE_BODY
This is text'

If I send only vBody, it comes through.

But when when I try this:
PLUGINS RMail .vBody
PLUGINS RMail 'v1|ADD_TO_MESSAGE_BODY '
PLUGINS RMail v1|LOAD_MESSAGE_BODY_FROM_FILE newsltr1406em.txt
PLUGINS RMail 'v1|ADD_TO_MESSAGE_BODY '

I only get the file.  Is it possible to have both the text and
a file?  Am I using the wrong parameters?

2) Only the ADD_TO_MESSAGE_BODY parameter has single quotes
around it.  Is this correct?

2) The examples in the RMail95.PDF show PLUGIN RMail but RStyle
changes them to PLUGINS RMail.
Is that ok?  It seems to work.


Did you know that you can combine the actual text created for
e-mail body PLUS the external text file as one variable that
could be used for your e-mail body?

Here is a very simple technique to concatenate both variables,
vBody and the external newsltr1406em.txt as one, that can be
used as combined message for e-mail body.

-- Example

   SET VAR vBody TEXT = 'This is the first paragraph'
   SET VAR vExtFileName VARCHAR = ['newsltr1406em.txt']
   SET VAR vEMailBody VARCHAR = +
   (.vBody+(CHAR(013))+(CHAR(013))+.vExtFileName)

Where:

. The variable vExtFileName will contain the entire text from
  newsltr1406em.txt, as is.

. The variable vEMailBody will be the concatenated text string
  containing the vBody + vExtFileName along with two carriage
  returns between vBody and vExtFileName

Note:

. Make sure to either place the external text file in the same
  folder or define the exact path and the text file name for
  vExtFileName variable.

. Add as many as returns (CHAR(013)) as you wish after the
  first paragraph (vBody).

Now you can use the resulting "vEMailBody" for you R:Mail 9.5 with
all required parameters, etc.

Once you understand this technique, you should be able to achieve
you goal by combining any text variables with external text file
as e-mail body, using R:Mail 9.5.

Have fun!

Very Best R:egards,

Razzak.

www.rbase.com
www.facebook.com/rbase
--
31 years of continuous innovation!
16 Years of R:BASE Technologies, Inc. making R:BASE what it is today!
--


Reply via email to