[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

4313.0. "Function MAIL SEND" by BACHUS::WILLEMSH () Tue Jul 05 1994 10:27

Hello,

In the ALL-IN-1 Application Programming: Reference Volume 2 of Version 3.0, page
414, function MAIL SEND [document-or-file] [/qualifier], one explains that it is
possible to send mails prepared in a VMS file: "The message file must include
the proper header information (FROM, TO, SUBJECT, and so on)."

Is there more detailed documentation available about that feature which seems
really interesting to develop "message enabled applications".


Thanks and Regards


Hilde Willems
T.RTitleUserPersonal
Name
DateLines
4313.1MAIL functionsGIDDAY::JOYCEDigital CSC SydneyTue Jul 05 1994 10:3724
    
    re .-1
    
    There are buckets full of examples in ALL-IN-1 already.  Try...
    
    	$ search oa$do:*.scp "MAIL SEND"
    	$ search oa$lib:*.scp "MAIL SEND"
    
    But as an example...
    
    
    	MAIL CREATE/OPEN/NOSEND/NOEDIT		! This creates an empty message 
    	MAIL TO "FRED NERK"			! add some addressees
    	MAIL CC "RICHARD CRANIUM"		!
    	MAIL SUBJECT "A test"			! and a subject/title
    	MAIL CLOSE_MESSAGE			! close the message
    	COPY "MY_FILE.TXT" OA$CURMES_FILE  	! add the text
    	MAIL SEND				! and send it...
    
    This is from memory (out IOS machine has carked it right now) but
    I think it's close enough.  All the MAIL xyz functions are documented
    in APR2.
    
    Andy
4313.2Scott, where are you?IOSG::PYEGraham - ALL-IN-1 Sorcerer's ApprenticeTue Jul 05 1994 10:3913
    Re .1
    
    I think .0 was referring to the mode where you can include the
    adressees and titel etc., actually *in* the body of the text file.
    
    Hilde,
    
    I don't think this is documented (other than in the code :-) ), so
    until Scott arrives to write a major essay on the required format, I
    suggest you search earlier in this conference, since I recall this has
    been discussed before.
    
    Graham
4313.3IOSG::MAURICEEnd of the road for the Emerald CityTue Jul 05 1994 17:209
    Hi,
    
    The note Graham may have had in mind is 2287 which gives an example of
    use. BTW the problem described in 2287, one of interaction with mail
    forward, is now fixed in V3.1.
    
    Cheers
    
    Stuart
4313.4MAIL SEND <VMS-file>IOSG::MARSHALLA glitch in realityTue Jul 05 1994 17:2026
It would appear that it works like this:

You create a text file with lines of the form:

TO: addressee
TO: addressee
CC: addressee
CC: addressee
FROM: you
SUBJECT: text of subject
[blank line]
body of message...

Notes:
- there must be at least one TO addressee, it complains if there are only CCs.
- you can leave out FROM; even if you set it, it gets overrideen and set to
    your username anyway, so you may as well leave it out
- it doesn't appear to be possible to set other filecab attributes on the
    message (eg I tried setting RR, SENSITIVITY, etc to no effect)
- there must be a blank line after the subject; or put another way, the line
    after the subject gets dropped, whether it's blank or not.

Note this was found out by trial and error, so I don't guarantee that it's a
definitive statement.

Scott
4313.5You youngsters don't remember this, but . . .SHRMSG::HOWARDYes it isTue Jul 05 1994 21:0312
    This is one of those leftovers from V1, which is probably only there
    for backward compatibility.  If you can locate a V1 APR, it probably
    has the details.  I will try to remember to bring mine in and post the
    details.  As I recall, this was the only way to do it.  The message and
    header were together.  Since V1 did not have sensitivity (!) or RR
    there was no way to set them.  I think that the only rule is that it
    doesn't look for attributes after the subject.  
    
    Don't expect that if this is broken, somebody is going to rush out and
    fix it.  I tried to use if once and found that it was very slow.  
    
    Ben
4313.6Just call me Trivia King...IOSG::PYEGraham - ALL-IN-1 Sorcerer&#039;s ApprenticeWed Jul 06 1994 09:552
    The blank line after the subject is probably expected to be the
    WPS-PLUS ruler...
4313.7V1 !!BACHUS::WILLEMSHWed Jul 06 1994 14:4813
Thanks all for your reply's.

I did some test too with the MAIL SEND.

Unfortunatelly we don't have any manuals left of ALL-IN-1 V1. so Ben, if you
please would be so kind if you still have the manual somewhere to post me the
details.


Thanks heaps


Hilde Willems
4313.8Some helpSHRMSG::HOWARDYes it isWed Jul 06 1994 22:1956
    Well, I have the manual (AA-N324A-TE) here now, but it isn't that much 
    help.  It just shows:
    
    Date:	13-AUG-1982 09:45
    From:	David T. Pearson (PEARSON)
    To:		John M. Claussen (CLAUSSEN)
    To:		Martin E. Smith, Jr. (SMITH)
    
    Subject:	Change to User Profile
    
    text of message . . . .
    
    [end]
    
    	The MAIL TO and MAIL SUBJECT funtions just put this text into the file. 
        I am pretty sure that common wisdom said that the SUBJECT had to be
        last, which makes sense.  The manual does say that the name in
        parentheses or brackets to the some "()" was used if it was there,
        or the full line after the To: was used as an address.  There is
        nothing about the position of the parentheses mentioned.  So,
    
    "The full addressee name is not required.  It is added for
    clarification only.  You can also enter the addressee line as:
    
    To:		(REDBONE)
    or
    To:		REDBONE
    
    *Mail Delivery Mechanism*
    
    When the Mail Facility sends a message, it scans the message buffer for
    valid addressees.  Lines that begin with TO: or CC: qualify as
    addressee lines.  Mail delivery for each addressee is determined in the
    following way:
    
    o  If the name is found enclosed in (), that name is used.  If not, the
       whole line is assumed to be the addressee. [I wonder if this is
       still true - BH]
    
    o	If the resulting addressee is preceded by an underscore (_), the
        mail destination is assumed to be SPECIAL.
    
    o	The addresse is looked up in the User Profile.  The mail
        destination field is then examined to determine the type of
        delivery.
    
    [basically what you would expect from here -BH]"
    
    I guess if you send a FAX number, I could pick out a few
    choice pages to send you, but this is most of it.
    
    In V1, you could have WPS-PLUS messages, but you could not create,
    edit, read, send, receive, or print them. ;-)  Actually, though, Graham
    may be right that you have to have a blank line at the beginning.
    
    Ben
4313.9Thanks BenBACHUS::WILLEMSHFri Jul 08 1994 11:1015

Thank you very much for your help Ben.


The FAX number of our office is


32-2-729.86.50


Regards


Hilde Willems