tsgrp / HPI

OpenContent Management Suite (OCMS)
http://www.tsgrp.com/products
17 stars 5 forks source link

HPI Send Email - Not sending from the user's account #471

Open gsteimer opened 10 years ago

gsteimer commented 10 years ago

When a user sends an email from HPI, we correctly grab the user's email address for the HPI Email Message object's properties:

image

But the email is actually sent from smtprelay@tsgrp.com:

image

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?

gsteimer commented 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.

gsteimer commented 9 years ago

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.