The SMTP transport handler allows the sending of processing results as an email via SMTP.
Options
from:The sender addressto: The receiver addresssubject: The subjecthost: The mail host (optional, default: localhost)port: The mail port. (optional, default: 587)tls: Using TLS. (optional, default: true)username: The username for SMTP auth (optional)password: The password for SMTP auth (optional)
Example
PQL
SMTP Transport Handler
output = SENDER({sink='Sink',
wrapper='GenericPush',
transport='SMTP',
protocol='CSV',
dataHandler='Tuple',
options=[
['from','odysseus@example.com'],
['to','me@example.com'],
['subject','Subject'],
['host','smtp.example.com'],
['tls','true'],
['username','Alice'],
['password','***']],
}, result)