Skip to content
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

Merged
merged 1 commit into from
Feb 18, 2015

Conversation

paroga
Copy link
Member

@paroga paroga commented Feb 18, 2015

Not every email provider allows sending messages from an unauthorized server.

Not every email provider allows sending messages from an unauthorized server.
@wvengen
Copy link
Member

wvengen commented Feb 18, 2015

Good point: setting the from address for mails from messages is indeed necessary. Still, this breaks replying.

  • At the very least: make it clear in the email that replying can only be done online, not by mail.
  • Perhaps we can set the Reply-To header, would suffice?
  • The most beautiful would be to create an email responder as part of Foodsoft, which processing email replies.

@paroga
Copy link
Member Author

paroga commented Feb 18, 2015

What does it break exactly? With the Reply-To header a conforming mail client should work like before...

@wvengen
Copy link
Member

wvengen commented Feb 18, 2015

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]}>",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I18n?

Copy link
Member Author

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?

Copy link
Member

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.

Copy link
Member Author

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.

Copy link
Member

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.

wvengen added a commit that referenced this pull request Feb 18, 2015
Use FoodsoftConfig[:email_sender] for sender address
@wvengen wvengen merged commit bd31092 into foodcoops:master Feb 18, 2015
@paroga paroga deleted the reply_to branch February 18, 2015 22:33
@wvengen wvengen modified the milestone: 4.4 Feb 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants