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

Do we want to support Email/Contact? #15

Closed
skyred opened this issue Oct 14, 2015 · 7 comments
Closed

Do we want to support Email/Contact? #15

skyred opened this issue Oct 14, 2015 · 7 comments
Labels
Request Request for image modification or feature

Comments

@skyred
Copy link
Contributor

skyred commented Oct 14, 2015

Both D7 and D8 ship with Contact Module, which generates a web form and send the inquiry to Emails. With this image, this function doesn't work, because there is no email server included in the image.

So, I am wondering if we want to support this Core function in this image?

@tianon
Copy link
Member

tianon commented Oct 15, 2015

See docker-library/wordpress#30 for a very closely related discussion. The TL;DR is that it's hard to configure this in such a way that it's sane-by-default for most use cases, so I think documenting how to configure it might be a safer solution overall.

@juliencarnot
Copy link

Documenting a good way to get around the issue would be great, as this function is also needed for password recovery for example...

@kn4a-com
Copy link

Or documenting on how to link your Drupal container to an mail container.

@wglambert wglambert added the Request Request for image modification or feature label May 9, 2018
@sitarane
Copy link

After failing to link the sendmail to this one, I went with the smtp auth drupal module to be able to send email from another server. Uneleguant solution that I would roll back as soon as someone can document how to send mail from a linked container (or adds the functionality to this one).

@mstenta
Copy link

mstenta commented Aug 17, 2018

Simple solution - extend the Drupal image with a custom Dockerfile and add SSMTP:

Dockerfile:

# Inherit from the Drupal 8 image.
FROM drupal:8

# Install SSMTP.
RUN apt-get install -y ssmtp

I also add configuration to SSMTP to relay through AWS SES or Mandrill, but I think the above works without anything extra.

@tianon
Copy link
Member

tianon commented Feb 17, 2022

I don't think there's a good generic solution we can apply here, but https://www.drupal.org/docs/develop/local-server-setup/managing-mail-handling-for-development-or-testing does have some good ideas, including pointers to https://www.drupal.org/project/smtp and https://www.drupal.org/project/phpmailer_smtp, one of which is definitely what I'd be using to solve this if I were running Drupal in my environment (either should be able to SMTP to a sidecar exim4 or otherwise container just as well as it can SMTP to an external provider).

Another option is something like ssmtp (as mentioned), but as ssmtp is technically deprecated I'd probably suggest msmtp instead.

@skyred
Copy link
Contributor Author

skyred commented Feb 17, 2022

Agreed. I am closing this issue.

For reference, if you want mailhog to intercept all emails, you can install mhsendmail

@skyred skyred closed this as completed Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Request Request for image modification or feature
Projects
None yet
Development

No branches or pull requests

7 participants