Problem sending a report via email

delphi package - automated exception handling
emailaya
Posts: 249
Joined: Thu Oct 13, 2005 11:33 am
Contact:

Re: Problem sending a report via email

Post by emailaya »

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?
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: Problem sending a report via email

Post by madshi »

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!
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:Generally asking: why do you think the problem is with the parameter?
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".

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.
emailaya
Posts: 249
Joined: Thu Oct 13, 2005 11:33 am
Contact:

Re: Problem sending a report via email

Post by emailaya »

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?
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: Problem sending a report via email

Post by madshi »

Sure, send an email to my gmail one. I might not have time to look into this until early next week, though.
emailaya
Posts: 249
Joined: Thu Oct 13, 2005 11:33 am
Contact:

Re: Problem sending a report via email

Post by emailaya »

OK, I sent you an email, just let me know you received it. early next week is good enough for me.
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: Problem sending a report via email

Post by madshi »

Received.
Post Reply