Open peylight opened 7 years ago
I would love to have the server name in there. It would help a lot, especially if you are suddenly getting a ton of emails.
Same problem here, without subject the emails are considered as spam
According to this: https://golang.org/src/net/smtp/example_test.go
it could be as simple as adding a "Subject: ...." to the message string. https://github.com/sanathp/statusok/blob/master/notify/mail_notify.go#L74
I don't know the go language so cannot be sure of this but maybe, something like that, on line 74, would do the trick:
message := fmt.Sprintf("Subject: [StatusOk] Timeout on "+responseTimeNotification.Url+"\r\n" +"\r\n" + getMessageFromResponseTimeNotification(responseTimeNotification) )
Can someone test that ? @sanathp @johannesE @peylight
@TwanoO67 Sorry, I am not using statusok anymore.
Hi emails have no any subject. can i add any subject instead of empty subject?