diff --git a/docs/reference/smtp.md b/docs/reference/smtp.md index 9def985ea..74dd91cc8 100644 --- a/docs/reference/smtp.md +++ b/docs/reference/smtp.md @@ -9,5 +9,5 @@ SMTP | Sender | String | Y | Who is sending the email | | Reciever | String | Y | Who is receiving the email | | Body | String | N :: "Hello from Scorestack" | Body of the email | -| Encrypted | String | N :: False | Whether or not to use TLS | +| Encrypted | String | N :: "false" | Whether or not to use TLS | | Port | String | N :: "25" | Port of the SMTP server | \ No newline at end of file diff --git a/dynamicbeat/checks/smtp/smtp.go b/dynamicbeat/checks/smtp/smtp.go index e7dc95187..2738a29aa 100644 --- a/dynamicbeat/checks/smtp/smtp.go +++ b/dynamicbeat/checks/smtp/smtp.go @@ -23,7 +23,7 @@ type Definition struct { Sender string `optiontype:"required"` // Who is sending the email Reciever string `optiontype:"required"` // Who is receiving the email Body string `optiontype:"optional" optiondefault:"Hello from Scorestack"` // Body of the email - Encrypted string `optiontype:"optional"` // Whether or not to use TLS + Encrypted string `optiontype:"optional" optiondefault:"false"` // Whether or not to use TLS Port string `optiontype:"optional" optiondefault:"25"` // Port of the smtp server }