Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
E-mail Sent time not matching server
I have been having an issue with version 2.0.2.0 of the SRP e-mailing utility. When we send an e-mail from our server (AST timezone) at 12:00pm noon, when we receive it; the received time is still noon, but the sent time says 8:00am. We had an older version of the utility (1.2.0.0) and the same e-mailing code does not have this issue.
Was there a change we missed between those versions where some sort of time setup is required on send to set the timezone properly?
Was there a change we missed between those versions where some sort of time setup is required on send to set the timezone properly?
Comments
Was the 1.2.0.0 not using that localtime API previously and that is why the older version seems to work vs the new one?
I could add a field to SRP_Send_Mail to let you supply your own sent-date, but I don't know if OI would have the same problem. That is, I don't know what API OI is ultimately relying on for its date and time.
We are still able to use older SRPMAIL.dll files to get the correct time to show up in an e-mail program, but we don't like the idea of removing fixes by downgrading to get the time fixed in the e-mail. We acknowledge that this problem is probably coming from our use of Citrix and adjusting the time zone to each user logging in to their local time zone.
If it helps to know, the time we get from OI when we do this appears correctly. So for now we are now including the time within the e-mails we send to say what time the e-mail was created. That way even though the time arrived may say something like 8am when it is actually 11am, the e-mail contains the 11am info.
Please let me know if the date look correct with this new version. If you absolutely must have SSL, let me know. There's a deprecated API in .NET that might be useable, but I'd rather not have to use something unsupported.
we had previously used the SRPSENDMAIL command rather than SRP_SEND_MAIL which is an easy change as it appears as though SRPSENDMAIL no longer exists in the dll. It looks like they have the same parameters though in the same order. No matter what I did though, it would always ignore any files I asked to have attached, and reset any importance flag to low importance.
Everything else seemed ok though. And like I said, it solved the time issue. We send attachments in many of our e-mails (usually pdf or excel reports) so it was easy to notice this right away.
I installed this into the test system I was working with and ran into an issue where now SRP_SEND_MAIL always returns "" rather than a success of 1. It also never sends the e-mail so I suppose that makes sense. Just in case, I made a fresh test system and installed the newer patch to it rather than overwrite the previous patch.
I got the same result. All of my e-mails had pdf attachments and normal priority. The title would be just "Work order 100001" and the description I changed to just say "see attached" in testing to see if it was the description.
I can get all of the settings of config and message if that helps.
The call in both cases is the same, it was just the 2.2.0.1 vs 2.2.0.2 so far as I can tell.
If versions matter, I see that we have on the server installed:
Revelation Software .Net 4.0 v9.5
Revelation Software .NET Components v9.5
as the dotnet components.
I can also email you the source code to SRP_Send_Mail for debugging to troubleshoot further. That way you can see exactly what is failing.
Thanks, Brad, for your patience.