I am trying to use IdSMTP to send email through my own Postfix server. To relaymessages, my server requires Sasl (simple login for the time being).
So I have IdSMTP created and want to add SASLMechanisms to it. I use FPC so I need it in source code not through Object Inspector. (I found how to do it through the GUI, but not the FPC approach.
I can create an object like tIdSASLLogin.Create() but that is not added to the SMTP.SASLMechanisms collection. I can do SASLMechanisms.Add; but it is not an SASLLogin, but a generic one. How to do it properly?
Something else:
Usually what I do, when cannot figure out how to do something, is that I create a new GUI application, add the components, and see what it creates, but with this particular one I have another problem. When I add a TIdSMTP to my form and in the Object Inspector I click ... next to the SASL Mechanisms I get an error: TGlyphBitmap: Unsupported Resourcetype: XPM Resource Name: DIS_ARROWRIGHT. So I cannot learn from it either.
(I use Debian 10, Gnome)