[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference iosg::all-in-1_v30

Title:*OLD* ALL-IN-1 (tm) Support Conference
Notice:Closed - See Note 4331.l to move to IOSG::ALL-IN-1
Moderator:IOSG::PYE
Created:Thu Jan 30 1992
Last Modified:Tue Jan 23 1996
Last Successful Update:Fri Jun 06 1997
Number of topics:4343
Total number of notes:18308

1054.0. "Send ALL-IN-1 Mail to a file?" by SWETSC::SANDSTROM (Elisabeth Sandstr�m) Wed Jul 15 1992 13:40

    Does anybody know how to send a mail to a file from ALL-IN-1. I've read in
    the Application Programming:Getting Started on page 17-8 - 17-14 about
    sending a mail to a command file. 

    As I understand you'll have to do a .CMU file and a .COM file for this and
    add the command file name in the profile "Destination for electronic mail".
    My customer doesn't succeed with this.

    What he wants to be able to do is to send an ALL-IN-1 V2.4 message to a VMS
    file so another system can take care of its content.

    Best Regards,

    Elisabeth

T.RTitleUserPersonal
Name
DateLines
1054.1Using AMTS to send to a fileSIOG::T_REDMONDThoughts of an Idle MindWed Jul 15 1992 14:5011
    AMTS allows you to declare a special mail destination. If you put "TBS"
    into the mail destination field of a user's profile record, ALL-IN-1
    will invoke OA$LIB:TBS.COM to process any messages sent to the user.
    
    TBS.COM could perform a DCL copy to move the message text to another
    directory where the mail system picks it up. Make sure you remember to
    copy the mail header as well, and to convert the file into ASCII (or
    whatever the other mail system understands). It would also probably
    help if you generated a unique file name each time round.
    
    Tony
1054.4Or the MAIL SEND function?AIMTEC::WICKS_ADEC Mail Works for ME sometimesWed Jul 15 1992 18:3315
    Elisabeth,
    
    Are you sure AMTS (Alternate MAil Transport System) is the way you want
    to go, here's another alternative depending on what you are trying to
    do.
    
    the MAIL SEND function will also take a parameter that is a VMS
    filespec e.g MAIL SEND [USER.A1.DOC8]ZXXXXXXX.TXT
    
    Just a thought.
    
    Regards,
    
    Andrew.D.Wicks
       
1054.5AMTS doesn't work for me either!IOSG::WDAVIESThere can only be one ALL-IN-1 MailWed Jul 15 1992 19:3214
    Not true - I just tried it.
    
             
    I can't figure out AMTS at all -  however maybe you are thinking of
    _SPECIAL addressing ? 
         
    If you start the address with an Underscore then OA$LIB:SPECIAL.COM
    is executed. The default is to run VMSmail to send - but you could
    modify it to do something else.
                                   
                                   
     Tony or someone else please elaborate on AMTS and how it is set up.
    
    Winto
1054.7This always USED to workFORTY2::ASHGrahame Ash @REOThu Jul 16 1992 10:497
fwiw, I'm with Tony - create a new user, called MAILFILE, give it a mail 
destination of MAILFILE, create oa$lib:mailfile.com, which takes the current 
document as a parameter #MAILFILE (see Chapter 17 of the V2.4 API Guide). 

What's the problem guys - surely this works?!!

grahame
1054.8IOSG::WDAVIESThere can only be one ALL-IN-1 MailThu Jul 16 1992 11:2226
    - well my mistake - MAIDES is VALIDATED on MUA options :
    So to a system manager it would appear impoosible to enter anuything 
    else in it... 
    
    what you need to do is this Elisabeth.  
                                                      
   <WRITE ADD PROFIL USER=REPLY,MAIDES="REPLY"

   Create a file REPLY.COM in OA$LIB:
    
$WRITE OAMAILBOX "OA GET #MAILADDR"
$@DCLMAILBOX                   
$p1 = "''RESULT'"              
$WRITE OAMAILBOX "OA GET #MAILSUBJ"
$@DCLMAILBOX
$p2 = "''RESULT'"
$!
$REPLY/USER='P1' "''p2'"
    
                                    
   To use it, address mail to:

     TO:  REPLY_username 
                               
    Winton                  
    
1054.10IOSG::MAURICECeci n&#039;est pas une noteThu Jul 16 1992 14:486
    This just a case where the chicken must come before the egg, i.e. the
    command file must be in place before the profile field can be edited.
    
    Cheers
    
    Stuart