01-28-2020, 09:13 PM
(01-28-2020, 09:03 PM)rlebeau Wrote:(01-27-2020, 07:34 PM)OldBob1938 Wrote: Now for the question. I've noticed there is an indy component IdSMTPRelay. I've been using IdSMTP for smtp relay by setting
IdSMTP->Host = "smtp-relay.gmail.com";
I've needed to do this since we do all of our mailing, including bulk email, via gsuite. Is there some advantage to using SMTPRelay instead?
TIdSMTP connects to 1 SMTP server and then sends 1 TIdMessage at a time, letting the SMTP server relay the email to all of the recipients as needed. This is the component you should typically be using, especially if you already have a relaying service that you use.
TIdSMTPRelay looks at the TIdMessage recipients, groups them by domain, and then connects to each domain's SMTP server and sends the TIdMessage to only the recipients within that domain. This would be the component you should use if you are implementing your own relaying SMTP server.
Thanks. You are a very patient lifesaver.