SignDKIM sample (wodSmtpServer / wodPop3Server / wodImapServer)
I'm trying to use SignDKIM Method but I'm not sure about 3th parameter Headers.
When the HeadersReceived events fires, I'm storing the Header into Message Tag like this:
Private Sub SMTPPrivado_HeadersReceived(ByVal User As WODSMTPSERVERCOMLib.ISmtpUser, ByVal Headers As WODSMTPSERVERCOMLib.ISmtpHeaders)
10 User.Message.Tag = Headers.ToString
End Sub
Then, in MailReceived Event, BEFORE relay the message, I'm trying to sign with:
NewMessage.SignDKIM mvarChavePrivada, "1578940440.mydomain", User.Message.Tag
PrivateSMTP.Relays.Add NewMessage
There is no error, but I'm not sure if this procedure is correct.
Can you tell me if this is correct?
Complete thread:
- SignDKIM sample - nestorcastro, 2020-01-13, 20:43
- SignDKIM sample - Jasmine, 2020-01-13, 22:33
- SignDKIM sample - nestorcastro, 2020-01-14, 12:30
- SignDKIM sample - Jasmine, 2020-01-14, 16:03
- SignDKIM sample - nestorcastro, 2020-01-14, 12:30
- SignDKIM sample - Jasmine, 2020-01-13, 22:33