SIDDIH SMTP SERVER ERROR Must issue a STARTTLS command first

109 views
Skip to first unread message

Antonio Moreno Borras

unread,
Sep 30, 2019, 4:20:58 PM9/30/19
to siddhi-user
Hello,

I am trying to use the sink type='email' and I have set up the smtp gmail server in that way:

@Source(type = 'http',
    receiver.url='http://0.0.0.0:8006/thresold',
    basic.auth.enabled='false',
    @map(type='json'))
define stream TransactionStream(creditCardNo string, country string, item string, quantity int, price double);

@sink(type='email',
  mail.smtp.starttls.enable = 'true',
  username ='testuser',
  address ='test...@gmail.com',
  password= 'xxxx',
  subject='Alert for large value transaction: cardNo:{{creditCardNo}}',
  to='final_de...@domainx.com',
  port = '587',
  host = 'smtp.gmail.com',
  ssl.enable = 'false',
  auth = 'true', 
  @map(type='text'))
define stream AlertStream(creditCardNo string, country string, item string, quantity int, price double);

@info(name='query1') 
  from TransactionStream[quantity * price  > 5000]
  select *
  insert into AlertStream;

When I run the application I don't get any error but in the moment I send the data and AlertStream try to send the email with the smtp server I get the error: Must issue a STARTTLS command first    
Does anyone know what I am doing bad?

Thank you in advance, 
Toni

Mohanadarshan Vivekanandalingam

unread,
Sep 30, 2019, 4:54:34 PM9/30/19
to siddh...@googlegroups.com
HI Toni,

I think, we have discussed this issue in slack channel [1] and stackoverflow [2] some time back.. 


Thanks,
Mohan
 

--
Siddhi homepage: http://siddhi.io/
Siddhi Github repo: https://github.com/siddhi-io/siddhi
 
You received this message because you are subscribed to the Google Groups "Siddhi-user" group.
To post to this group, send email to siddh...@googlegroups.com
To unsubscribe from this group, send email to siddhi-user...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/siddhi-user?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups "siddhi-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to siddhi-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/siddhi-user/465b0880-d4b6-496e-b1f5-4797fb97f7e4%40googlegroups.com.


--
V. Mohanadarshan | Senior Technical Lead | WSO2 Inc. |
(M) 94-771117673 | (E) mo...@wso2.com |
GET INTEGRATION AGILE
Integration Agility for Digitally Driven Business
Reply all
Reply to author
Forward
0 new messages