-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use FoodsoftConfig[:email_sender] for sender address #349
Conversation
Not every email provider allows sending messages from an unauthorized server.
Good point: setting the from address for mails from messages is indeed necessary. Still, this breaks replying.
|
What does it break exactly? With the Reply-To header a conforming mail client should work like before... |
Oh, somehow I missed that. Sorry! |
@@ -6,6 +6,7 @@ def foodsoft_message(message, recipient) | |||
|
|||
mail subject: "[#{FoodsoftConfig[:name]}] " + message.subject, | |||
to: recipient.email, | |||
from: "#{show_user(message.sender)} <#{message.sender.email}>" | |||
from: "#{show_user(message.sender)} via Foodsoft <#{FoodsoftConfig[:email_sender]}>", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I18n?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
really? isn't "via" universal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the handful of languages we have right now, probably yes. In general, no. I'd like to be prepared.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest keeping it hardcoded for now, since we have an even bigger problem: The text depends on the language of the sender and not of the recipient.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True! Let's keep it like this for now.
Use FoodsoftConfig[:email_sender] for sender address
Not every email provider allows sending messages from an unauthorized server.