on 11-16-2015 3:14 PM
Hi Colleagues,
I'm trying to use the SMTP Output adapter in order to send email on a certain event. This is setup of the adapter:
smtpHost = 'mail.sap.corp' ,
addressColumn = '<email>@sap.com' ,
subjectColumn = '<Subj>' ,
importanceColumn = 'IMPORTANCE' ,
fromAddress = '<user>@<server>' ;
The event occurs but email doesn't send by server. SMPT on the machine set up and it's possible to send a test email from the FS using mailx utility.
Does someone have any idea of what might be wrong here? Uh, one more thing - I tried to find out any error messages in log and trc files of the system - nothing.
Thanks in advance.
Best regards,
Andy.
Hi Andy,
What version of ESP (the full version string) are you using? To find that out, please follow the instructions here: Locating the ESP Version Information - SAP Event Stream Processor: Troubleshooting Guide - SAP Libra...
Thank you,
Alice
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.