Operator simplesendmail

Toolkits > com.ibm.streamsx.topology.pysamples 1.1.0 > com.ibm.streamsx.topology.pysamples.mail > simplesendmail

Send a simple email.

Python

@spl.for_each(style=position)
class simplesendmail(object):
    "Send a simple email."
    def __init__(self):
        self.server = smtplib.SMTP('localhost')

    def __call__(self, from_addr, to_addrs, msg):
        self.server.sendmail(from_addr, to_addrs, msg)

Summary

Ports
This operator has 1 input port and 0 output ports.
Windowing
This operator does not accept any windowing configurations.
Parameters
This operator does not support parameters.
Metrics
This operator does not report any metrics.

Properties

Implementation
C++
Threading
Always - Operator always provides a single threaded execution context.

Input Ports

Ports (0)

__SPLPY__INPORT_0__DESCRIPTION__SPLPY__

Properties

Libraries

SPLPY header
Include Path: ../../opt/.splpy/include
Python libraries.
Command: ../../opt/.splpy/common/pyversion3.sh