Search found 165 matches

by cblaze22
2019-06-10 05:05
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 2133

Re: Programmatically set retry count/delay amount

Well I really cant think of anything else I can do in this regard. I thought there maybe a way since we figured out the X-Priority and Unsubscribe based on status code features we needed.
by cblaze22
2019-05-29 18:52
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 2133

Re: Programmatically set retry count/delay amount

So is there no way to add something to an email header in the queue that failed on the first try?
by cblaze22
2019-05-28 02:36
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 2133

Re: Programmatically set retry count/delay amount

Well yea but I didnt know it didnt call it on every call but it does make sense but I am back at square one. Well when can I add the X-Failure header then lol. Does it hit any other methods that you know of on a failure/retry setup?
by cblaze22
2019-05-28 00:38
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 2133

Re: Programmatically set retry count/delay amount

I have a weird thing going on here. There is stuff in my queue, and when I send now for something like cherylspink@outlook.con which it should fail, but the log below with SMTP turned on only produces that and leaves it in the Queue when clicking Send now. Any suggestions on this? It should hit my O...
by cblaze22
2019-05-27 01:03
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 2133

Re: Programmatically set retry count/delay amount

Well I can control delivery attempts through UI but I want to do this only through certain failed messages. Guess I could add a new header to the email like X-Status-Code: 500 and if set to say -1 then delete it with a rule. Does that make sense?
by cblaze22
2019-05-26 15:58
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 2133

Re: Programmatically set retry count/delay amount

Ok I think that makes sense with the 500. But with errors like "Error Description: No mail servers appear to exists for the recipient's address", which has no status code it looks like even when I remove the Message with the Message ID, it creates a new Message ID. So it looks like the code below do...
by cblaze22
2019-05-25 06:06
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 2133

Re: Programmatically set retry count/delay amount

I think its just a delay in the queue being updated that is throwing me off. I saw some emails pop back up. However the code below seems to be working. If you think there is a better way to refactor it let me know, not a VBScript expert. Sub OnDeliveryFailed(oMessage, sRecipient, sErrorMessage) Dim ...
by cblaze22
2019-05-25 05:18
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 2133

Re: Programmatically set retry count/delay amount

I am doing this inside the Sub OnDeliveryFailed(oMessage, sRecipient, sErrorMessage) method. I did a test and the syntax doesnt break anything. I did a test to view the queue of the email going through the loop count. However, after the email fails, 550, it doesnt stay in the queue to retry. Is this...
by cblaze22
2019-05-23 13:45
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 2133

Re: Programmatically set retry count/delay amount

Will that syntax work within the normal script methods. I know I had to initialize the DeliveryQueue with the COM API outside of it.
by cblaze22
2019-05-23 05:19
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 2133

Re: Programmatically set retry count/delay amount

Oh yea that makes sense, just remove the email if its not say 421. How do you remove something from the queue though programmatically?

Something like this

Code: Select all

GlobalObjects.DeliveryQueue.Remove(oMessage.ID)
in the DeliveryFail method?
by cblaze22
2019-05-18 17:23
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 2133

Re: Programmatically set retry count/delay amount

Or can you delete the message altogether in Sub OnDeliveryFailed(oMessage, sRecipient, sErrorMessage) so it doesnt retry? Can Result.Value = 2 work in this method?
by cblaze22
2019-05-18 14:53
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 2133

Re: Programmatically set retry count/delay amount

Back to the original question. I have failed emails, which call a http request to remove it. However, I set the retry count to 3. This means that failed email will be called 3 times for 500+ errors when its already been removed. My question is can I set the retry count, loop of the email? If so how ...
by cblaze22
2019-05-17 20:58
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 1742

Re: Delete noreply still showing in queue

So if I test for the mail-demon it will drop them if I do that in OnAcceptQueue and they wont show up in the queue?
by cblaze22
2019-05-17 20:56
Forum: General discussions
Topic: Time to say good bye ...
Replies: 24
Views: 2602

Re: Time to say good bye ...

I am not sure what the adoption rate is or how many hmailservers are currently in existence. However, if we wanted to keep this going and give some incentive then donations should become a big part. I donated $100 the other day and I believe if we have a fund each month that needs to be hit to say f...
by cblaze22
2019-05-13 14:49
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 2133

Re: Programmatically set retry count/delay amount

Any thoughts on these?

https://www.tecmint.com/best-open-sourc ... -software/

I need this installed on Windows and doesnt look like there are many options. Looks like you have to have a modem connected, which on Azure I dont have the possibility too.
by cblaze22
2019-05-13 04:16
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 2133

Re: Programmatically set retry count/delay amount

Oh you mean like Twilio, which we do integrate with but you have to PAY! We ran 163,000+ messages in two days. Thats $1,222+ with Twilio!
by cblaze22
2019-05-13 03:57
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 2133

Re: Programmatically set retry count/delay amount

Not sure what you mean by resolve it with a sms gateway.
by cblaze22
2019-05-13 01:00
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 2133

Re: Programmatically set retry count/delay amount

These email to text carriers have quota limits per hour. We get messages like the one below quite a bit because of how much messaging occurs during weekend tournaments. The example below is for 7077314137@pm.sprint.com. "Error Type: SMTP[nl] Remote server (52.32.5.167) issued an error.[nl] hMailServ...
by cblaze22
2019-05-12 16:30
Forum: Scripting
Topic: Programmatically set retry count/delay amount
Replies: 31
Views: 2133

Programmatically set retry count/delay amount

Is there a way to programmatically set the retry count and delay amount when an emails fails, specifically like a 421 status code where the receiving server has a quota limit and we would like to send those emails on a delay in the future. Other errors like 452 or 500 can be rejected out right and n...
by cblaze22
2019-05-12 03:44
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 45
Views: 2866

Re: Move emails to top of the queue based on certain priority header flags

Dravion wrote:
2019-05-10 15:42
Why do you compare this?
cblaze22 wrote:
2019-05-10 15:33
If oMail.HeaderValue("X-Priority") = "1"
Do you manipulate the Headers externaly so you can rely on it?
Yes I set this externally.
by cblaze22
2019-05-12 02:42
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 45
Views: 2866

Re: Move emails to top of the queue based on certain priority header flags

Well its been a success. Had a log of 250 items, sent my priority email and got it within seconds. I always do. I thought this thing ran every minute, which I setup, but it seems its kinda instant, not sure why. In any case we have successfully moved items up the queue! Nice job guys!
by cblaze22
2019-05-12 02:40
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 1742

Re: Delete noreply still showing in queue

Good weekend, nothing in log at all. I think the cores helped. However I still get the original question issues where the email go into the queue for no reason. If I set some code in OnAcceptMessage to test for From: mailer-daemon@email.test.com I believe I can drop it there correct and not have it ...
by cblaze22
2019-05-11 14:21
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 1742

Re: Delete noreply still showing in queue

Will do, I also increased from 2 to 4 cores this weekend to see how the queue goes.
by cblaze22
2019-05-10 15:33
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 45
Views: 2866

Re: Move emails to top of the queue based on certain priority header flags

Here is my most updated code. Big test this weekend to see how it works. Worried about pulling ALL messages while doing this. Again doing this in a trigger with the incoming message is so ideal. Dim column, fso, Match, Matches, oMail, Priority : Priority = False Dim oApp : Set oApp = CreateObject("h...
by cblaze22
2019-05-10 06:21
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 45
Views: 2866

Re: Move emails to top of the queue based on certain priority header flags

I was skeptical of that line also, but my friend it does work and has long been working before my updated code.

Code: Select all

strFilename = oMail.Filename
by cblaze22
2019-05-10 03:34
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 45
Views: 2866

Re: Move emails to top of the queue based on certain priority header flags

My code seems to work. Would the code below be something to do with any type of error?

Code: Select all

On Error Resume Next
by cblaze22
2019-05-10 02:51
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 45
Views: 2866

Re: Move emails to top of the queue based on certain priority header flags

I got a file not found error. Probably ran at the same time it was being deleted and the .eml was already deleted. I havent tested the code below, but do you believe its right? The error shows in a pop up on the server and doesn’t run again. Is there a way to do try catch so it will run next minute?...
by cblaze22
2019-05-09 13:31
Forum: Feature requests
Topic: Before and After Delivery Queue Trigger Methods
Replies: 0
Views: 709

Before and After Delivery Queue Trigger Methods

I believe it would be beneficial to have Before and After a message is added to the queue. Right now I do such a thing to read a priority header to send something to the top of the queue. However this involves the COM API, VBScript and an outside CMD Window using Task Scheduler. It also involves rea...
by cblaze22
2019-05-09 05:42
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 45
Views: 2866

Re: Move emails to top of the queue based on certain priority header flags

Set up and will see how it works this weekend when loads of emails come in. Final code is below, needed CLng and updated header name. You said to put a value for StartIn in Task Scheduler. If nothing is in there would it hurt anything? I put my VBScript file is a customer folder and pointed the Star...
by cblaze22
2019-05-09 02:21
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 1742

Re: Delete noreply still showing in queue

Ill take your word for it. I removed it. Anything else you see needed in my report?
by cblaze22
2019-05-08 21:30
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 45
Views: 2866

Re: Move emails to top of the queue based on certain priority header flags

Awesome Ill let you know how it goes. Anyway I can donate to your skills.
by cblaze22
2019-05-08 16:27
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 45
Views: 2866

Re: Move emails to top of the queue based on certain priority header flags

I saw that nice job. So we know we can get messages in the queue, read the headers from them from disk. Then we know we can reset delivery time to send the email right away. The last thing is where exactly should we put this code. Now I know you have a command window, which does a loop. I really don...
by cblaze22
2019-05-08 16:21
Forum: Scripting
Topic: Read headers from .eml on disk
Replies: 5
Views: 526

Re: Read headers from .eml on disk

Yes you certainly are. Lets continue this in our main thread on this, this handles the reading headers from file on disk
by cblaze22
2019-05-08 15:18
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 45
Views: 2866

Re: Move emails to top of the queue based on certain priority header flags

I like this

Code: Select all

ID = Left(Match,InStr(Match," ")-12)
Can you explain how it works real quick. If I want to grab the .eml column, I assume that would work the same way.
by cblaze22
2019-05-08 15:09
Forum: Scripting
Topic: Read headers from .eml on disk
Replies: 5
Views: 526

Re: Read headers from .eml on disk

This is a totally seperate question. If someone else wants to do a read of a file from disk and read the header, this email will come up. This is not being all over the place, but a distinct question. Yes I will take this answer and merge it into the other code we are working on. However, this quest...
by cblaze22
2019-05-08 14:00
Forum: Scripting
Topic: Read headers from .eml on disk
Replies: 5
Views: 526

Read headers from .eml on disk

How can I load a .eml from disk and read the headers of it? I am trying to do this in the OnDeliverMessage method.
by cblaze22
2019-05-08 13:46
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 1742

Re: Delete noreply still showing in queue

The doubling isnt a big deal in that case since we send to ourselves rarely. If I want noreply@test.com to go to info@test.com, I have to have a valid email to get out of the loop like test@gmail.com. I know there is a loop count, but the point is I need to get the email regardless, forwarding takes...
by cblaze22
2019-05-08 13:39
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 45
Views: 2866

Re: Move emails to top of the queue based on certain priority header flags

You stated

Code: Select all

It does however get messages that have failed and are awaiting re-delivery to be processed NOW
But that doesnt mean just failed, but anything in the queue correct? Is oApp.status.UndeliveredMessages items in the queue or failed items in the queue?
by cblaze22
2019-05-08 04:38
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 45
Views: 2866

Re: Move emails to top of the queue based on certain priority header flags

I think we are getting somewhere. Below I am able to grab the MessageIds in the queue on a delivery start. Next I need a way to read the email so I can view the headers in it for a certain flag? Is the best way to do that to read in the the .eml filepath and if so is there some reusable code someone...
by cblaze22
2019-05-08 01:14
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 45
Views: 2866

Re: Move emails to top of the queue based on certain priority header flags

So you cant run that say on OnAcceptMessage as a polling strategy?
by cblaze22
2019-05-07 23:37
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 45
Views: 2866

Re: Move emails to top of the queue based on certain priority header flags

Well that is neat, but where do you think the best place to call this?
by cblaze22
2019-05-07 18:10
Forum: Scripting
Topic: OnDeliverMessage placement of call
Replies: 11
Views: 830

Re: OnDeliverMessage placement of call

Can you set the deliverytime of a message in the OnDeliverMessage method?
by cblaze22
2019-05-07 18:08
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 45
Views: 2866

Re: Move emails to top of the queue based on certain priority header flags

Ok so I have no idea what the point was of stating its C# code. VBScript can also use the COM API, so the statement was irrelevant. So again, can that code be used in the OnDeliverMessage method. I dont see why not?
by cblaze22
2019-05-07 17:07
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 45
Views: 2866

Re: Move emails to top of the queue based on certain priority header flags

Im a programmer, already programmed a VBScript to remove bounced messages within HMailServer so I know what I am doing. I however dont know the logistics of how HMailServer flows. You just said its written in c++ but the admin panel IS NOT written in just c++, https://github.com/nberardi/hMailServer...
by cblaze22
2019-05-07 16:15
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 45
Views: 2866

Re: Move emails to top of the queue based on certain priority header flags

Ok I feel like I am getting contradictory responeses with these methods. So OnDeliverMessage is when it goes INTO the queue. Meaning it has a Message ID, meaning I can run the code below to put it at the top of the queue. Please confirm. WaitCursor waitCursor = new WaitCursor(); hMailServer.Delivery...
by cblaze22
2019-05-07 16:13
Forum: Scripting
Topic: OnDeliverMessage placement of call
Replies: 11
Views: 830

Re: OnDeliverMessage placement of call

What do you mean by "And yes, if you want this to happen you need to create a stand-alone script to monitor the queue and act accordingly."? Also there has to be a method hook for this. I cant believe we cant do anything to a message before it goes into the queue or right after. Should be an easy th...
by cblaze22
2019-05-07 16:11
Forum: General discussions
Topic: Firing Order
Replies: 5
Views: 1132

Re: Firing Order

What kind of answer is that?
by cblaze22
2019-05-07 14:07
Forum: General discussions
Topic: Firing Order
Replies: 5
Views: 1132

Re: Firing Order

Does Global Rules after Accept Message get executed before going in Queue? Also does it have a Message ID at that point?
by cblaze22
2019-05-07 13:36
Forum: Scripting
Topic: OnDeliverMessage placement of call
Replies: 11
Views: 830

Re: OnDeliverMessage placement of call

You say that but you were incorrect about the OnDeliveryFailed method. The code below sends an email right away. So you are telling me there is no place in the HMailServer scripting this can happen? private void menuItemSendNow_Click(object sender, EventArgs e) { WaitCursor waitCursor = new WaitCurs...
by cblaze22
2019-05-07 13:33
Forum: Scripting
Topic: Saving oMessage in OnAcceptMessage to Get MessageID
Replies: 10
Views: 933

Re: Saving oMessage in OnAcceptMessage to Get MessageID

Is there a method that is available, that has the ID, but is called before it goes into the queue or right after it goes in the queue.

My goal is to send the email immediately based on a header instead of say waiting in the queue for a hour to be processed because an important email is backed up.
by cblaze22
2019-05-07 13:31
Forum: Scripting
Topic: Move emails to top of the queue based on certain priority header flags
Replies: 45
Views: 2866

Re: Move emails to top of the queue based on certain priority header flags

Ok work with me here. I have posted that exact code you did multiple times without much luck on a good response. If I wanted to use that code to send something right away, based on say a header, where would I put it? The OnAcceptMessage doesnt have a ID and that is when its placed in the queue right...
by cblaze22
2019-05-07 13:28
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 1742

Re: Delete noreply still showing in queue

If I send an email to say info@test.com from noreply@test.com, it forwards to my gmail account. We do this so we can test with our own domain otherwise it stays in a loop in HMailServer and never makes it through.

Plus dont we need domains so we can use the DKIM?
by cblaze22
2019-05-07 07:18
Forum: Scripting
Topic: OnDeliverMessage placement of call
Replies: 11
Views: 830

Re: OnDeliverMessage placement of call

When an email is added to the end of the queue, say index 40,000, so at the end. Does OnDeliverMessage get called then WITH AN ID, or does OnDeliverMessage get called after all 39,000 get processed on that one email? I am trying to find a location to immediately deliever an email based on a header a...
by cblaze22
2019-05-07 07:08
Forum: Scripting
Topic: Saving oMessage in OnAcceptMessage to Get MessageID
Replies: 10
Views: 933

Saving oMessage in OnAcceptMessage to Get MessageID

I found this in the code base below. The Message ID is not available in the OnAcceptMessage, however if you hit .Save like it shows below, will that assign an ID to the message so we can send it out for delivery right away. PLEASE SOMEONE CONFIRM! [Test] public void TestAddTextDuringSending() { hMai...
by cblaze22
2019-05-07 07:02
Forum: Scripting
Topic: Reading oMessage-ID in OnAcceptMessage-Event
Replies: 3
Views: 1443

Re: Reading oMessage-ID in OnAcceptMessage-Event

Can you call .Save in the OnAcceptMessage to get the ID?
by cblaze22
2019-05-07 05:55
Forum: General discussions
Topic: Delete noreply still showing in queue
Replies: 32
Views: 1742

Re: Delete noreply still showing in queue

I control the servers that have permission to send to this server. It only sends out email via SMTP.

I use the domains for any loop issues, so emails will go to an external email by taking advantage of the forwarding.
by cblaze22
2019-05-07 05:14
Forum: Scripting
Topic: VBScript Regex to Grab Status Code and Test If 500 or higher.
Replies: 9
Views: 796

Re: VBScript Regex to Grab Status Code and Test If 500 or higher.

Not working 3544 "2019-05-06 23:09:51.609" "Running" 3544 "2019-05-06 23:09:51.609" "Error Type: SMTP[nl] Remote server (166.216.149.129) issued an error.[nl] hMailServer sent: RCPT TO:<8583390609@txt.att.net>[nl] Remote server replied: 550 5.1.1 <8583390609@txt.att.net> recipient does not exist h...
by cblaze22
2019-05-06 15:37
Forum: Scripting
Topic: VBScript Regex to Grab Status Code and Test If 500 or higher.
Replies: 9
Views: 796

Re: VBScript Regex to Grab Status Code and Test If 500 or higher.

I assume this will work Sub OnDeliveryFailed(oMessage, sRecipient, sErrorMessage) Dim regex, matches, match, strResult, valInt Set regex = New RegExp regex.IgnoreCase = True regex.Pattern = "^(?:.*Remote server replied:\s)([0-9]{3})(?:\s.*)$" Set matches = regex.Execute(sErrorMessage) If matches.Cou...