Author Topic: How to change emailer settings  (Read 1152 times)

ddddd13

  • Full Member
  • ***
  • Posts: 118
    • View Profile
How to change emailer settings
« on: September 03, 2020, 08:24:09 PM »
When using the emailer it will send out an email on startup if I use the TriggerType ValueChange. This is the easiest way for me to send an email as all I have to do is increment value. I have tried
Emailer1.TriggerType=ValueChange
and
Emailer1.TriggerType = AdvancedHMI.Controls.EmailerEx.TriggerTypeEnum.ValueChange
Neither one actually changes the Type.

What am I doing wrong

Dave

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5276
    • View Profile
    • AdvancedHMI
Re: How to change emailer settings
« Reply #1 on: September 03, 2020, 08:31:15 PM »
You shouldn't have to set that property since ValueChange is the default value.

MajorFault

  • Guest
Re: How to change emailer settings
« Reply #2 on: September 03, 2020, 11:29:25 PM »
Because on startup the value changes from nothing to something, which is a change. You will need to ignore on startup. That’s something you will need to do manually I suppose as I don’t think that’s natively in the controls.

ddddd13

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: How to change emailer settings
« Reply #3 on: September 04, 2020, 07:24:05 AM »
I am trying to stop the email from being sent on startup by setting it to GreaterThanValue, then changing it to value change after it has started.

Dave

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5276
    • View Profile
    • AdvancedHMI
Re: How to change emailer settings
« Reply #4 on: September 04, 2020, 07:55:58 AM »
It looks like as of V3.99y Beta 35, this is in the emailer to not send on startup.

ddddd13

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: How to change emailer settings
« Reply #5 on: September 07, 2020, 11:33:10 AM »
Ok. So your saying I need a newer version of software?

I got around the problem by making the first email message "system restart".

However, I was trying to change the property Emailer1.MessageTo without success. I used.

Emailer.MessageTo=7155555555@vtext.com

I am sending out 5 emails one after the other and it would send them all to the number that was set in the property field on startup, not the one I changed it to with the above code. I guess refresh might have taken care of the problem. I got around it by using 5 emailers. What are your thoughts on refresh? Or would that send another startup email?

Dave

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5276
    • View Profile
    • AdvancedHMI
Re: How to change emailer settings
« Reply #6 on: September 07, 2020, 12:27:56 PM »
Is it the same message going to all email addresses? If so, have you tried putting them all in MessageTo with a semi-colon separator .

ddddd13

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: How to change emailer settings
« Reply #7 on: September 07, 2020, 08:51:32 PM »
No, the operator can turn on and off receiptants but your idea would likely work if changing the MessageTo property would actually change in the program.

In the end I got this to work, lets not waste any more time with it.

Dave