Oh Great Guru Razzak

Thanks so much for your help last night, but things were moving pretty fast, 
and I probably did not keep you up.

John Minyo had directed me to use the EMail ON option in the print command, 
thereby bypassing my email program completely.

That seems to be working, but it is with  EMail ON that I am having trouble 
doing a multi-line body.

The syntax is quite different, no quotes etc.  I have tried a carriage return 
(Char(10)) etc. but with no success.

The code you sent works great in Mapi, but Mapi doesn't want to work on my 
system.  Is there a way to do a multi line body in the print command Email ON?

See code below  (the EMail_BODY  line does NOT work)  It is interesting that an 
ampersand variable seems to work on some of
the other command lines, but I cannot seem to get it to give me line returns 
when used in the BODY command.

Thanks so much, as always, your humble student..

Dick Fey
Carpet Broker Inc

Set var vrefnum INTEGER = 280100
SET VAR vreftext TEXT = (CTXT(.vrefnum))
SET VAR vattach = ('Ref-' + .vreftext  +'.PDF')
SET VAR vmailto = '[EMAIL PROTECTED]'
SET VAR vReturn TEXT = '(CHAR(13))'
PRINT cbInvoice2 WHERE refnum = .vrefnum +
OPTION PDF|FILENAME Ref-&vreftext.PDF +
|EMAIL ON +
|EMAIL_HOST smtp-server.kc.rr.com +
|EMAIL_USERID churchfey +
|EMAIL_PASSWORD sunshine +
|EMAIL_ATTACHMENTS &vattach +
|EMAIL_TO_LIST  &vmailto +
|EMAIL_FROM_NAME Carpet Broker +
|EMAIL_FROM_ADDRESS [EMAIL PROTECTED] +
|EMAIL_SUBJECT  Order Status Ref No: &vrefnum +
|EMAIL_BODY  Attached is invoice and order status of reference &vreftext +
+ &vreturn + &vreturn +
Please call 800-228-4632 if you have questions regarding this order. +
|EMAIL_DELETE_AFTER_SEND OFF +
|EMAIL_SHOW_DIALOG OFF +
RETURN

Reply via email to