Hi Andrey,
To fix this, change the addressColumn, subjectColumn, importanceColumn values to be the column names of the stream or window to which the adapter is attached. The stream provides the strings that get used for creating the email message's address, subject and importance fields.
Here's a simple example:
CREATE INPUT STREAM NEWSTREAM SCHEMA (Column1 INTEGER ,
recipAddr string ,
subj string ,
importance string );
ATTACH OUTPUT ADAPTER SMTP_Output1 TYPE smtp_out
TO NEWSTREAM
PROPERTIES
smtpHost = 'mail.sap.corp' ,
addressColumn = 'recipAddr' ,
subjectColumn = 'subj' ,
importanceColumn = 'importance' ,
fromAddress = 'espuser@myserver.com' ,
resendAttempts = 3 ;
Then, input a row of data: 500, <email>@sap.com, sub, normal
The email will show up in the email inbox (<email>@sap.com) as:
From: espuser@myserver.com
Sent: <date and time stamp of email>
To: <email>@sap.com
Subject: sub
===NEWSTREAM===
Column1=500
recipAddr=<email>@sap.com
subj=sub
importance=normal