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

Conference vmszoo::vmsmail

Title:VMS Mail Utility Suggestions and Discussions
Moderator:EPS::VANDENHEUVEL
Created:Thu Feb 13 1986
Last Modified:Tue Jun 03 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1943
Total number of notes:8236

1936.0. "Multiple addresses and returned error status codes" by FUTURS::CROSSLEY (For internal use only) Fri Apr 11 1997 06:23

    
    Hi Folks,
    
    we're trying to use MAIL$SEND_MAIL_ADDRESS using PASCAL to build a list of 
    all required mail addresses.
    
    IF one or more of these mail addresses is invalid, is there any way to
    get the individual status codes back for each attempted mail address.
    
    for example, VMS provides the following :-
    
    
    MAIL> mail
    To:     muscle::build, chefs::crossley_i, chest::hairy
    %MAIL-E-LOGLINK, error creating network link to node MUSCLE
    -SYSTEM-F-NOSUCHNODE, remote node is unknown
    %MAIL-E-NOSUCHUSR, no such user HAIRY at node DEC:.SBP.CHEST
    Do you want to send anyway (Y/N, default is N)? n
    
    
    What I'd like to be able to trap are NOSUCHUSER and LOGLINK etc....
    
    The only other way would be to send to each mail address individualy.
    
    Regards,
    Ian.
    
    
T.RTitleUserPersonal
Name
DateLines
1936.1EPS::VANDENHEUVELHeinFri Apr 11 1997 13:377
    
    Without verifying in the book, I assume you must establish 
    a signal handler and stop inhinitting mail to signal errors.
    
    Hein.