hitobito / development

Setup your local machine for hitobito development
GNU Affero General Public License v3.0
19 stars 15 forks source link

Sending Mails to Hitobito #33

Closed maede97 closed 1 year ago

maede97 commented 2 years ago

I managed to get everything up and running, and I currently want to test the mail features out (abo). However, the email-adress is something like ...@localhost (which makes sense). Mailcatcher does only catch incoming mails, which are sent for example when a user want's a password reset link. This does work. However, is there a way to send a mail to the running hitobito application for it to be sent to the abo mailing lists?

carlobeltrame commented 2 years ago

I don't think there is a way to do this yet. I also asked the same thing back on the predecessor of this project in https://github.com/nxt-engineering/hitobito-docker/issues/1. Hitobito itself cannot receive emails, you'd need a local mail server for that. Hitobito could then be configured (RAILS_MAIL_RETRIEVER_CONFIG) to fetch emails from a catch-all inbox on that local mail server, that's how we do it in production.

mtnstar commented 2 years ago

we do have a development test inbox (catch all) on our own mail server for development/testing.

maybe you could use something like https://greenmail-mail-test.github.io/greenmail/ or create a mail box on any mail server too. the challenge would be to have the mail headers set correctly.

https://github.com/hitobito/hitobito/blob/master/doc/e-mail/abo_mails.md

olibrian commented 1 year ago

We will close this issue. No action needed. If not, feel free to reopen this issue.