We have moved at community.getvera.com

Author Topic: SMTP-Mail custom subject  (Read 1600 times)

Offline gduprey

  • Beta Testers
  • Full Member
  • *****
  • Posts: 122
  • Karma: +6/-1
SMTP-Mail custom subject
« on: September 24, 2014, 11:05:11 pm »
Howdy,

Getting my feet wet with VeraAlerts and already love how much more compact they are compared to the default Vera notifications!

Running into a few questions I can't seem to find answers for here or the VeraAlerts page:

1) Most of my notifications are short and I'd like them to appear as the subject line for my SMTP-Mail notifications.  I've tried setting up the Subject field in my SMTP-Mail profile to '{Description}' and confirmed it's reflected in the advanced tabs profile stuff.  But when I get an alert, the email subject is literally the text '{Description}', not being replaced with a description of the notification. 

I'd prefer a global solution to having to override the subject for every notification.  Is there a way to construct a default Subject line in the SMTP-Mail profile that has template/tokens in it?

2) On that topic, when I do want to override the subject for a notification, how do I include a template token in the subject of message override?  For example, I set my message override for a notification to '{Description} {Subject={Device} On}'

The received subject line I see is literally '{Device} On' instead of '49 On'.  Is there a way to include template/tokens in a message overrides Subject token?

3) On the From header for an emailed notification, I want my email client to show a name, not just an email address.  In most email programs (and SMTP specs), the way you do this is a name with the email address in angle brackets.  Like "My House <gerry@somewhere.net>" (no quotes).   Most email clients will then show just 'My House' in the From field (though the entire thing is there if you look at the headers).

When I enter that into the SMTP-Mail profile as the From line, I receive email that looks like (from the header of the message):

From: "My House <gerry@somewhere.net>" <gerry@somewhere.net>

So it's combining the name and email address as the name (and then sort of doubling down on the email address).  Is there a way to specify the name and email address in the SMTP-Mail profile From line?

Thanks so much -- already purchased a 2 profile license and once I get this all ironed out, may be adding another one for pushover notifications too.

Gerry

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +764/-143
Re: SMTP-Mail custom subject
« Reply #1 on: September 25, 2014, 09:51:18 am »
You are pushing the limits of what I have done for SMTP profile.
I do not currently do template expansion on the Subject field. I can add that.
I will many of the issues on the request list.

Offline gduprey

  • Beta Testers
  • Full Member
  • *****
  • Posts: 122
  • Karma: +6/-1
Re: SMTP-Mail custom subject
« Reply #2 on: September 25, 2014, 11:41:26 am »
I appreciate all you can do.  I think begin able to use tokens/tabs on a profile Subject line will get me most of the way.

Is there a place where I can set/tailor the default template tokens used to format the message body (the actual content of the email)?  I know I could override each alert, but I'm really looking just to globally reformat the mailed message and include a few more items.

Finally, I know there is a token for device number ({DeviceID}) and a method to access device name/description if I have the device number ({Device[19].description}), but is there a generic way to reference the device name in a template?   Specifically, a template that is used for many messages, so it can't have an embedded device id (i.e. something "like" {Device[{DeviceID}].description}?

Thanks!!

Gerry

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +764/-143
Re: SMTP-Mail custom subject
« Reply #3 on: September 25, 2014, 01:25:41 pm »
I will have to see what context I have available ... I can make enhancements in this area.

Offline wallfly

  • Newbie
  • *
  • Posts: 4
  • Karma: +1/-0
Re: SMTP-Mail custom subject
« Reply #4 on: July 30, 2015, 02:48:40 pm »
Hi Richard,   Just curious if there has been any progress on this topic.   I've noticed that the Vera UI is now able to include custom subject information, and I've been hoping that VeraAlerts might also be able to soon, if not already.