Search found 9 matches

by madman32395
2016-05-31 09:33
Forum: User contributed hMailServer 4 scripts
Topic: Piping message to application
Replies: 50
Views: 51257

Re: Piping message to application

Your last code modified: Sub OnDeliverMessage(oMessage) If g_sPipeAddress1 = "" Or g_sPipeAddress2 = "" Then bPipeMessage = True Else bPipeMessage = False 'eventlog.write(now() & " " & oMessage.To & " " & oMessage.subject) for i = 0 to oMessage.recipients.count -1 If LCase(oMessage.Recipients(j).Ad...
by madman32395
2016-05-31 01:45
Forum: User contributed hMailServer 4 scripts
Topic: Piping message to application
Replies: 50
Views: 51257

Re: Piping message to application

(I dont necessarily agree with the logic, just modified so it doesnt error for you) reasoning why I was going towards the oMessage.To was becasue it would grab the billing@gcinema.net ; when i was logging using the oMessage.Recipients(j).Address it would print my personal email address. Billing @ g...
by madman32395
2016-05-30 22:17
Forum: User contributed hMailServer 4 scripts
Topic: Piping message to application
Replies: 50
Views: 51257

Re: Piping message to application

mattg wrote:Which is line 43?
Set obRecipients = oMessage.To
by madman32395
2016-05-30 11:14
Forum: User contributed hMailServer 4 scripts
Topic: Piping message to application
Replies: 50
Views: 51257

Re: Piping message to application

did a little searching on the forums and found a oMessage.To, when logged it logs the correct email address, so this is what I have now. Sub OnDeliverMessage(oMessage) If g_sPipeAddress1 = "" Or g_sPipeAddress2 = "" Then bPipeMessage = True Else bPipeMessage = False Set obRecipients = oMessage.To 'e...
by madman32395
2016-05-26 08:30
Forum: User contributed hMailServer 4 scripts
Topic: Piping message to application
Replies: 50
Views: 51257

Re: Piping message to application

odd no change. no error or any new log types (such as message pipelined or shell created)
by madman32395
2016-05-26 05:32
Forum: User contributed hMailServer 4 scripts
Topic: Piping message to application
Replies: 50
Views: 51257

Re: Piping message to application

No error log created in the hmailserver log directory? I'm guessing that this is part of your eventhandler.vbs, and that scripts are enabled and loaded. If you aren't already using the eventhandlers.vbs, can you please add this to it and reload the script. (This little sub should just write the mes...
by madman32395
2016-05-26 03:27
Forum: User contributed hMailServer 4 scripts
Topic: Piping message to application
Replies: 50
Views: 51257

Re: Piping message to application

Can you please post the script as you have tried it, and any error messages that you get Also, does your hMailserver work fine otherwise? yea all other functions work fine, just the scripting i found searching around here. my hmail is running 5.6.4-B2283 Const g_sPHPPath = "<path>\php.exe" Const g_...
by madman32395
2016-05-26 02:40
Forum: User contributed hMailServer 4 scripts
Topic: Piping message to application
Replies: 50
Views: 51257

Re: Piping message to application

ive tried the one that's out there, but doesn't seem to dispatch the message out to the receiving php script.
by madman32395
2016-05-25 23:47
Forum: User contributed hMailServer 4 scripts
Topic: Piping message to application
Replies: 50
Views: 51257

Re: Piping message to application

Please ALSO note that the COM API changed significantly between ver 4 and ver 5 of hMailsevrer, hence the separate forum sections. Is there any version 5 scripts? I searched the ver5 forum and cannot locate any new information on this. Basically I am looking for piping from hmail to a php script ma...