Oh so close, but no cigar.

I have (forever) been trying to automate order acknowledgement and invoice 
emails.

Using Razzak's fine adivse from below, I am finally getting it to work... 
almost.

All works fine till the e-mail goes into the Outlook Express outbox, where it 
seems to hang up.

You can continue to run R:base with no problem, but when you exit, you get the

 "Rbase has encountered a problem and needs to close"  box.  

If you click on outlook express, prior to closing R:Base, you get the following 
error.

"Access violation address 60349F17  Read of address 60349F17"

Only after you close R:base, does the e-mail finally leave the Outlook Express 
OutBox

Its like its not getting a 'Get it out of here now' message.

Ideas are more than welcome.

Running 7.5.25.30811 in a custom app generated with application express.

Dick Fey
Carpet Broker Inc.





On 12/15/07  Razzak wrote:

Try the following code for MAPIMail4.RBL Plugin to send E-Mail:

-- Start
-- Pre-Define Required Variables for MapiMail4.RBL Plugin
    SET VAR vFileName TEXT = 'Welcome.pdf'
    SET VAR vQuote TEXT = (CVAL('QUOTES'))
    SET VAR vResult TEXT = 'vResult'
    SET VAR vPipe TEXT = '|'
    SET VAR vTo TEXT = ('To:'+.vEMailAddress)
    SET VAR vSubject TEXT = ('Subject:Welcome to AFOL On-Line')
    SET VAR vCc TEXT = ('Cc:'+.vSchoolEMail)
    SET VAR vBcc TEXT = ('Bcc:')
    SET VAR vAttachments TEXT = 
('Attachments:'+(CVAL('CURRDIR'))+'\'+.vFileName)
    SET VAR vBody TEXT = 'Body:Please see attached...'
-- Build one string with all parameters
    SET VAR vParameters TEXT = +
    
(.vQuote+.vResult&.vPipe+.vTo&.vPipe+.vSubject&.vPipe+.vCc&.vPipe+.vBcc&.vPipe+
     +.vAttachments+.vPipe+.vBody)
    CLS
-- Initialize MapiMail4.RBL
    PLUGIN MAPIMail4.RBL &vParameters
-- Clear variables
    CLEAR VARIABLES vFileName,vQuote,vResult,vPipe,vTo,vSubject,vCc, +
    vBcc,vAttachments,vBody,vParameters
    RETURN
-- End

Reply via email to