Jump to content

Something weird with Emails/Notifications


Traditore

Recommended Posts

I set up a notification.

 

Subject is: Testing

Body is: Leak detected in downstairs bathroom

Format is: Text

 

No more, no less. No variables involved either.

 

The e-mail I receive when I test this:

Mime-Version:1.0
Content-Type: text/plain; charset="utf-8"

Leak detected in downstairs bathroom.

 

What's with the first two lines???

Link to comment

I think you were right. There was an extra CRLF in there.

 

But if the subject is: ISY ALARM ${alert.details} I get this in Gmail:

 

Subject: ISY ALARM At: 2013/03/03 4:57:24 PM

Body:
Mime-Version:1.0
Content-Type: text/plain; charset="utf-8"

Testing

And I know I didn't leave out a CRLF anywhere. So why the Mime stuff?

 

If the subject is: ${alert.details} ISY ALARM, I get this in Gmail:

 

Subject: At: 2013/03/03 5:01:15 PM

Body:
Testing

No mention of ISY ALARM...

 

Unless I remove the space and write the subject like this: ${alert.details}ISY ALARM

 

Subject:

Body:
ISY ALARM
Mime-Version:1.0
Content-Type: text/plain; charset="utf-8"

Testing

But part of the subject ends up in the body...

 

I'm puzzled...

Link to comment

I'm using smtp.gmail.com, port 587. User ID : my Gmail address. Password: my Gmail password. From*: ISY. Timeout: 1000. Use TLS: checked.

 

I see the *First-Name Last-Name:Email-Address line, but I don't know what it means for the From* field above.

 

I only had time to test one of the possibilities I mentioned before and the result is the same. Using the Default SMTP server, I get this from alerts@universal-devices.com:

 

Subject: ISY ALARM At: 2013/03/04 8:08:55 AM

Body:
Mime-Version:1.0
Content-Type: text/plain; charset="utf-8"

Testing 

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...