Thank you Razzak.  I can't make it work with office365 even when I specify:

PRINT employeelist OPTION PDF|FILENAME LIST.PDF +
|EMAIL ON +
|EMAIL_HOST smtp.office365.com +
|EMAIL_USERID [email protected] +
|EMAIL_PASSWORD ********* +
|EMAIL_FROM_ADDRESS [email protected] +
|EMAIL_FROM_NAME CMR +
|EMAIL_BODY This is the list I promised and can't deliver. +
|EMAIL_TO_LIST [email protected] +
|EMAIL_SUBJECT Employee List +
|EMAIL_PORT 25 +
|EMAIL_SHOW_DIALOG ON
RETURN

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of 
A. Razzak Memon
Sent: Tuesday, October 04, 2016 4:27 PM
To: [email protected]
Subject: RE: [RBASE-L] - 9.5 SMTP on compiled application

At 05:05 PM 10/4/2016, Claudine Robbins wrote:

>In the meantime, what's the trick to making printing a report work with 
>EMAIL ON?

Claudine,

Here are a few examples ...

--Multiple Attachment Example:
CONNECT RRBYW18
PRINT Invoice WHERE TransID = 1031 +
OPTION PDF|FILENAME Invoice_1031.PDF +
|EMAIL ON +
|EMAIL_TO_LIST [email protected], [email protected] + 
|EMAIL_FROM_NAME John D. Johnson + EMAIL_FROM_ADDRESS 
|[email protected] + EMAIL_SUBJECT Imagine The Possibilities! 
|+ EMAIL_BODY Attached is the invoice - sent via R:BASE. Because we Can! 
|+ EMAIL_ATTACHMENTS
C:\Letters\PrivacyPolicy.pdf#C:\Letters\PaymentTermsPolicy.pdf +
|EMAIL_DELETE_AFTER_SEND ON +
|EMAIL_SHOW_DIALOG OFF
RETURN

--Multi-line Message Body Example:
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_123.PDF +
|EMAIL ON +
|EMAIL_TO_LIST
[email protected],[email protected] +
|EMAIL_FROM_NAME Wilbur Day +
|EMAIL_FROM_ADDRESS [email protected] + EMAIL_SUBJECT Invoice 
|Summary As Requested + EMAIL_BODY .vEMailBody + EMAIL_DELETE_AFTER_SEND 
|ON + EMAIL_SHOW_DIALOG OFF
RETURN

Hope that helps!

Very Best R:egards,

Razzak.



--
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.

Reply via email to