Search code examples
delphiindyindy10

How can I get Indy IdSMTPRelay log of the SMTP conversation?


I use Indy10's TIDSMTPRelay to relay some messages out and it works great. However, I need a log of the actual SMTP conversation with the counterparty and the OnDirectSMTPStatus and OnStatus events do not provide this as far as I can see. How can I get to the SMTP log?


Solution

  • I ended up using TIdLogEvent implementing the OnSent and OnReceived events.