Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIdSMTPServer - Questions (differences between v9 and v10)
#13
(07-18-2024, 08:47 PM)Justin Case Wrote: So with what you said about the data and thread models being seperated, can I assume that ASender.Data is the equivalent of the old AThread.Data?

Yes. TIdContext is basically what TIdPeerThread was before, except TIdContext is merely linked to the owning TThread (via the TIdContext.Yarn property) instead of being directly derived from it (if you need direct access to the TThread, there is a way to do it).

(07-18-2024, 08:47 PM)Justin Case Wrote: As for checking the domain, I thought best to check for the account and domain via the one query - that way if the mailbox isn't local my server can just reject it.

It is your server, your rules.

(07-18-2024, 08:47 PM)Justin Case Wrote: I'm not too keen on the idea of wasting extra CPU cycles to generate a bounce email.

Keep in mind that you do need to implement such emails in situations where delivery still fails after you already told the client you would deliver. Once you reach the OnMsgReceive event, the mail transaction is complete and you are solely responsible for the email, and must either deliver it or report failures to the client's mailbox (they can't be reported using the current SMTP connection at this point).

Reply


Messages In This Thread
RE: TIdSMTPServer - Questions (differences between v9 and v10) - by rlebeau - 07-18-2024, 09:53 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)