On 5/12/2009, at 8:29 PM, Dima Pasechnik wrote: >>> such a functionality. After this is done, one has to wait just a bit >>> to see >>> requests for Sage notebooks to be able to work as an e-mail >>> client :-) >> >> See the email() command :). > huh? It does not seem to be possible to locate documentation on > this... > Certainly not in various indices, and plain Google gives lots fo > false hits. > sage: email?
Type: function Base Class: <type 'function'> String Form: <function email at 0x10a2336e0> Namespace: Interactive File: /Applications/sage/local/lib/python2.6/site-packages/ sagenb/notebook/sage_email.py Definition: email(to, subject, body='', from_address=None, verbose=True, block=False, kill_on_exit=False) Docstring: Send an email message. INPUT: to -- string; address of recipient subject -- string; subject of the email body -- string (default: ''); body of the email from_address -- string (default: usern...@hostname); address email will appear to be from verbose -- whether to print status information when the email is sent block -- bool (default: False); if True this function doesn't return until the email is actually sent. if False, the email gets sent in a background thread. kill_on_exit -- bool (default: False): if True, guarantee that the sending mail subprocess is killed when you exit sage, even if it failed to send the message. If False, then the subprocess might keep running for a while. This should never be a problem, but might be useful for certain users. EXAMPLES:: sage: email('xxxsageu...@gmail.com', 'The calculation finished!') # not tested Child process ... is sending email to xxxsageu...@gmail.com NOTE: This function does not require configuring an email server or anything else at all, since Sage already includes by default a sophisticated email server (which is part of Twisted). -- http://yomcat.geek.nz -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org