Last post Jun 25, 2014 02:31 AM by Captain Planet
Jun 24, 2014 04:45 PM|Captain Planet|LINK
I've written a tool for multiple companies to use. Rather than it send emails from my SMTP server (firstname.lastname@example.org) I want to let them use their own SMTP server (email@example.com)
to send emails from. I can store these settings in a SQL database. My question is:
I can retrieve them once at login, and store them in a session object which they can use each time they send an email. Is this secure?
I could read the settings from the database each time they send an email (perhaps not as efficient?).
Thanks for any advice.
Jun 24, 2014 04:55 PM|Mikesdotnetting|LINK
I would retrieve them from the database. If doing so created a performance problem, you have bigger worries to manage.
Jun 24, 2014 06:47 PM|Captain Planet|LINK
Jun 25, 2014 02:16 AM|Mikesdotnetting|LINK
Think about it this way - if you have 5000 users who don't send an email, you will have retrieved the data unnecessarily and stored it in server RAM for no good reason if you use session.
Jun 25, 2014 02:31 AM|Captain Planet|LINK