Author Topic: Message Handler quit working  (Read 2869 times)

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Message Handler quit working
« Reply #15 on: August 05, 2019, 11:42:07 PM »
View->Other Windows->Data Sources

ddddd13

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: Message Handler quit working
« Reply #16 on: August 06, 2019, 09:27:14 AM »
Archie;

Version 21 is acting the same way now. It worked for a while then one email does not go out, and it does not report an error. The next email errors because the last one is still in the Q. I wonder if this is related to the 5 emails every 4 hours. I will let you know in about 3 hours.

As for the Data Base View/Other Windows/ Data Sources brings me to the DataBase setup for the variables being passed but I don't see anything that looks like a path.

Thanks,
Dave

ddddd13

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: Message Handler quit working
« Reply #17 on: August 06, 2019, 12:47:53 PM »
Archie;

That's it. Five emails then it locks out until 4 hours have elapsed. I will compile the program and load it on the customers computer and try it.

On the Data Base side, I still don't see anything that looks like a file address. Do you remember if we did that FTP?

Thanks,
Dave

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Message Handler quit working
« Reply #18 on: August 06, 2019, 12:52:37 PM »
Depending on what database you use, it may only have a server and not a file.

ddddd13

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: Message Handler quit working
« Reply #19 on: August 06, 2019, 10:28:15 PM »
Archie:

That rings a bell, server.

Message Handler Problem.

I have used 4 different email providers excite, gmail, mail, and Rackspace. I have used two laptops and a tablet. They all send 4 or 5 emails then lock up for four hours.

Lets look at what I am doing. I set MessageHandler1.Value to a 1 the system starts emailing to the person in the emailer list based on what I have in the file Emailer. Currently Emailer looks like this.
1,1,1,1,1,1
2,1,1,1,1,1
3,1,1,1,1,1

Emails look like this

1,ddddd13@excite.com
2,ddddd13@mail.com

After I set MessageHandler1.Value to a 1 I wait 10 seconds and then set it to a 2. At this point I should get an email from alarm 1 then 2 then after a minute from 1 again then 2 after another minute from 1 then 2.

I only get 4 or 5 emails. Then the system locks up for 4 hours. I can reboot change the properties in the message handler to send from a different email provider and change the emails file to send to a different email address. Nothing, its locked up for 4 hours.

Are there any other properties for the MessageHandler that are not on the messageHandler properties window?

Im baffled,
Dave

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Message Handler quit working
« Reply #20 on: August 06, 2019, 10:44:59 PM »
I would have to do some testing on this to see what is causing it. What are the SMTPServer and Port you are using for each of the mail servers?

ddddd13

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: Message Handler quit working
« Reply #21 on: August 06, 2019, 10:54:04 PM »
Archie;

I don't want to send all that info over this forum. I will send it to your phone.

Dave

ddddd13

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: Message Handler quit working
« Reply #22 on: August 06, 2019, 10:54:47 PM »
Archie;

Strike that I will send it to your office email.

Dve

ddddd13

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: Message Handler quit working
« Reply #23 on: August 07, 2019, 07:31:29 AM »
Archie;

Its 5 emails whether successfully sent or not then you have to wait 4 hours.

Dave

ddddd13

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: Message Handler quit working
« Reply #24 on: August 07, 2019, 08:54:33 AM »
Archie;

I think I found it! I sent 7 emails from excite to Rackspace all exactly the same and vice versa. Only 4 showed up.

After that I sent another email different header and different body and it went thru. I am going to set MessageHandler1.MessageSubjectPrefex = Now

Hopefully this will change the email enough to allow it to go thru.

Hope I don't have to wait the 4 hours to test.

Thanks again,
Dave

ddddd13

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: Message Handler quit working
« Reply #25 on: August 07, 2019, 10:26:45 AM »
Archie;

Seems no matter what I do it won't work. I have changed the body the header, but after 4 or 5 emails lockup with this error.

8/7/2019 9:20:17 AM - Send Message : This operation cannot be performed while a message is being sent.
8/7/2019 9:20:17 AM - An asynchronous call is already in progress. It must be completed or canceled before you can call this method.

I have gotten out of VS and restarted, rebooted, even sent an email between the servers manually. It will not allow more than 5 via software.

Dave


ddddd13

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: Message Handler quit working
« Reply #26 on: August 07, 2019, 06:58:54 PM »
Archie;

I changed the content of the email I changed the subject heading and it still locks me out after 5 emails.

If I send five emails via my laptop from one site to another it will lockout, but change the subject and it will start again. I have tested sending 10 emails via laptop with different subjects and it works.

It locks out because of my computer or the VS software. For example, I can send emails between excite and mail. I can also send emails between Rackspace and gmail. If I send 5 emails between excite and mail, I am now locked out and cannot send between Rackspace and gmail. Is having VS Community the problem?

Thanks,
Dave

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Message Handler quit working
« Reply #27 on: August 07, 2019, 07:08:14 PM »
This is not a VS problem. It sounds like something related to the email servers preventing spam. I did not get a chance to test anything yet because I have been in a meeting all day.

Phrog30

  • Guest
Re: Message Handler quit working
« Reply #28 on: August 07, 2019, 08:26:23 PM »
This is not a VS problem
Nor an AdvancedHMI problem.

Dave, there are tons of other helpful sources out there.  Use Google and search away.  I've emailed before, sometimes blasting coworkers accounts an email a second just for kicks.  Never had issues like you describe.  Common sense should say if you waiting 4 hours it's nothing on VS or AHMI.