Can multiple SMTP libraries be using in a single application
Hi,
I want to know if it is possible to add multiple SMTP libraries to the 'uses' clause of our Delphi project (i.e. ppSMTPMAPI, ppSMTPOutlook, ppRESTMailGMail, and ppRESTMailOutlook365) as different users of our software will use different email software/products. We want the individual users to be able to select their email software and then enter the appropriate connection/configuration options. If so, how would I go about selecting/enabling the correct SMTP library to use at run-time?
Thanks,
Scott
I want to know if it is possible to add multiple SMTP libraries to the 'uses' clause of our Delphi project (i.e. ppSMTPMAPI, ppSMTPOutlook, ppRESTMailGMail, and ppRESTMailOutlook365) as different users of our software will use different email software/products. We want the individual users to be able to select their email software and then enter the appropriate connection/configuration options. If so, how would I go about selecting/enabling the correct SMTP library to use at run-time?
Thanks,
Scott
Thanks,
Scott
Scott
Comments
You can manually register and un-register email plugins in code using the TppSMTPPlugIn.RegisterClass and TppSMTPPlugIn.UnRegisterClass in the ppSMTPCustom.pas file respectively. See the following article and example for how this can be done.
http://rbwiki.digital-metaphors.com/output/email/email-fundamentals/
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Scott
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com