Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no subject #16

Open
peylight opened this issue Mar 23, 2017 · 4 comments
Open

no subject #16

peylight opened this issue Mar 23, 2017 · 4 comments

Comments

@peylight
Copy link

Hi
emails have no any subject.
can i add any subject instead of empty subject?

@johannesE
Copy link

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.

@TwanoO67
Copy link

Same problem here, without subject the emails are considered as spam

@TwanoO67
Copy link

TwanoO67 commented Oct 23, 2019

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

@johannesE
Copy link

@TwanoO67 Sorry, I am not using statusok anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants