Open gsteimer opened 10 years ago
As a stopgap, we should at least add a configuration in OC that says whether or not the SMTP server requires authentication. If so, do what it does now. If not, send the email from the logged in user's account.
At some point, we can handle the authentication in some manner so that we no longer need to send emails using a generic account.
After some digging into the email items, I think this is more of an SMTP server issue than a code issue. At least for now. In EmailImpl
the from address is getting set correctly each time. Unless we want to ask the user for their email credentials when sending emails, the SMTP server needs to be configured with an account that is allowed to send emails as another user.
When a user sends an email from HPI, we correctly grab the user's email address for the HPI Email Message object's properties:
But the email is actually sent from
smtprelay@tsgrp.com
:I'm guessing this is because if we did send the email as the actual user, we would need to somehow get the user's email password before sending the email. Is that correct?