I tried both
SCH_CRED_MANUAL_CRED_VALIDATION
0x00000008
and
SCH_CRED_USE_DEFAULT_CREDS
0x00000040
FSchannelCred.dwFlags := 8;
FSchannelCred.dwFlags := 64;
but dwflags before this line is 0 (as expected) but after this line it's 16!
Generally asking: why do you think the problem is with the parameter?
Problem sending a report via email
Re: Problem sending a report via email
After which line? This is just a record, not a function call. So whatever value you write to it, must stick. The flags can be "or"ed together, so you can use "8 + 16 + 64", if you want to use those 3 flags together.emailaya wrote:I tried both
SCH_CRED_MANUAL_CRED_VALIDATION
0x00000008
and
SCH_CRED_USE_DEFAULT_CREDS
0x00000040
FSchannelCred.dwFlags := 8;
FSchannelCred.dwFlags := 64;
but dwflags before this line is 0 (as expected) but after this line it's 16!
I don't know what the problem is. But if the HELO already fails, I can only suspect that the SSL stuff somehow fails. And the AcquireCredentialsHandle call is one key aspect of that. There are some more places, though. See "TSmtp.InitializeSecurityContext" and "TSmtp.ClientHandshakeLoop".emailaya wrote:Generally asking: why do you think the problem is with the parameter?
If you want, I can look into this myself, but I'd need your full SMTP data, because otherwise I can't reproduce the problem on my PC.
Re: Problem sending a report via email
my bad. Now I set it to 8, 16, 64 and 8 + 16 + 64 and all failed with the same helo ()....
I can create a user for your testing and then I will delete it. Can I email you to your gmail email or another one?
I can create a user for your testing and then I will delete it. Can I email you to your gmail email or another one?
Re: Problem sending a report via email
Sure, send an email to my gmail one. I might not have time to look into this until early next week, though.
Re: Problem sending a report via email
OK, I sent you an email, just let me know you received it. early next week is good enough for me.
Re: Problem sending a report via email
Received.