Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: os.edit - Function Up: os - Tool Previous: os.showtableuse - Function


os.mail - Function



Package utility
Module misc
Tool os


mail a message to a user


Synopsis
mail(message, recipient, sender, subject, cc, bcc)


Description
Mail a message to one or more recipients. It is also possible to give zero or more cc- and bcc-addresses. Note that \n can be used to create multiple lines in the message. If the sender is given as a boolean, it is assumed that the message contains lines containing the sender, subject, etc.. Otherwise the message is prepended with such lines.

The mailer to be used can be defined in the aipsrc variable os.mailer. It defaults to mailx.

The function is used by bug and ask. Currently it uses a shell command to do the mailing.



Example
The following command sends a message with noordam as the sender.
  dos.mail ('line1\nline2', 'gvd mhaller', 'noordam', 'some subject',
            cc='tcornwel@nrao.edu wyoung@nrao.edu')



Arguments

message in message to send
    Allowed: string
recipient in whom to send the message
    Allowed: string
sender in whom the message comes from
    Allowed: string
    Default: T
subject in subject of the email
    Allowed: string
    Default: ''
cc in whom to cc the message
    Allowed: string
    Default: ''
bcc in whom to bcc (blind copy) the message
    Allowed: string
    Default: ''


Returns
T or fail




next up previous contents index
Next: os.edit - Function Up: os - Tool Previous: os.showtableuse - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15