At 02:04 PM 8/18/2014, [email protected] wrote:
RBASE 9.5 (32)
I use the command PRINT with the option EMAIL ON for sending mail.
In the option EMAIL_BODY how can I force a carriage return in a sentence?
I have tried to insert into the sentence (CHAR (10)) or (CHAR (13)), but
without success.
Daniele,
When using the EMAIL ON option of sending Reports/Labels via R:BASE 9.5,
and if you wish to include EMAIL_BODY with multiple lines, you will have
to first define a variable with concatenated returns (CHAR(013)), and
then use that variable as EMAIL_BODY.
Here's how ...
A very simple example:
-- Start
CONNECT RRBYW18
SET VAR vEMailBody TEXT = +
('Attached please find your sales summary report!'+(CHAR(013))+ +
(CHAR(013))+'Please reply with any questions.')
PRINT InvoiceSummary WHERE CustID = 128 +
OPTION PDF|FILENAME C:\InvoiceSummary.PDF +
|EMAIL ON +
|EMAIL_TO_LIST [email protected],[email protected] +
|EMAIL_FROM_NAME Daniele Barbieri +
|EMAIL_FROM_ADDRESS [email protected] +
|EMAIL_SUBJECT As Requested ... +
|EMAIL_BODY .vEMailBody +
|EMAIL_ATTACHMENTS C:\InvoiceSummary.PDF +
|EMAIL_DELETE_AFTER_SEND ON +
|EMAIL_SHOW_DIALOG OFF
RETURN
-- End
That's all there is to it!
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!
--